Skip to content

Commit

Permalink
Turned the ustring == operator const as advised by IkarusDowned.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yohann Ferreira committed Dec 18, 2012
1 parent 71a3edf commit aad20df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils.cpp
Expand Up @@ -237,7 +237,7 @@ ustring &ustring::operator = (const ustring &s)
} // ustring & ustring::operator = (const ustring &s) } // ustring & ustring::operator = (const ustring &s)


// Compare two substrings // Compare two substrings
bool ustring::operator == (const ustring &s) bool ustring::operator == (const ustring &s) const
{ {
size_t len = length(); size_t len = length();
if (s.length() != len) if (s.length() != len)
Expand Down
2 changes: 1 addition & 1 deletion src/utils.h
Expand Up @@ -312,7 +312,7 @@ class ustring


ustring &operator = (const ustring &s); ustring &operator = (const ustring &s);


bool operator == (const ustring &s); bool operator == (const ustring &s) const;


uint16 &operator [](size_t pos) { uint16 &operator [](size_t pos) {
return _str[pos]; return _str[pos];
Expand Down

0 comments on commit aad20df

Please sign in to comment.