Commit 79147a2d authored by hybrid's avatar hybrid

Indentation.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3971 dfc29bdd-3216-0410-991c-e03cc46cb475
parent c4cd7cb1
...@@ -422,24 +422,24 @@ public: ...@@ -422,24 +422,24 @@ public:
//! Equality operator //! Equality operator
bool operator ==(const T* const str) const bool operator==(const T* const str) const
{ {
if (!str) if (!str)
return false; return false;
u32 i; u32 i;
for(i=0; array[i] && str[i]; ++i) for (i=0; array[i] && str[i]; ++i)
if (array[i] != str[i]) if (array[i] != str[i])
return false; return false;
return !array[i] && !str[i]; return (!array[i] && !str[i]);
} }
//! Equality operator //! Equality operator
bool operator ==(const string<T,TAlloc>& other) const bool operator==(const string<T,TAlloc>& other) const
{ {
for(u32 i=0; array[i] && other.array[i]; ++i) for (u32 i=0; array[i] && other.array[i]; ++i)
if (array[i] != other.array[i]) if (array[i] != other.array[i])
return false; return false;
...@@ -448,28 +448,28 @@ public: ...@@ -448,28 +448,28 @@ public:
//! Is smaller comparator //! Is smaller comparator
bool operator <(const string<T,TAlloc>& other) const bool operator<(const string<T,TAlloc>& other) const
{ {
for(u32 i=0; array[i] && other.array[i]; ++i) for (u32 i=0; array[i] && other.array[i]; ++i)
{ {
s32 diff = array[i] - other.array[i]; const s32 diff = array[i] - other.array[i];
if ( diff ) if (diff)
return diff < 0; return (diff < 0);
} }
return used < other.used; return (used < other.used);
} }
//! Inequality operator //! Inequality operator
bool operator !=(const T* const str) const bool operator!=(const T* const str) const
{ {
return !(*this == str); return !(*this == str);
} }
//! Inequality operator //! Inequality operator
bool operator !=(const string<T,TAlloc>& other) const bool operator!=(const string<T,TAlloc>& other) const
{ {
return !(*this == other); return !(*this == other);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment