Skip to content

Commit

Permalink
Fix warnings found from clang
Browse files Browse the repository at this point in the history
  • Loading branch information
Andersbakken committed Oct 14, 2014
1 parent 0aac869 commit 2b2c0d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rct/Rct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ const char *colors[] = {

String colorize(const String &string, AnsiColor color, int from, int len)
{
assert(from <= size());
assert(from <= string.size());
assert(from >= 0);
if (len == -1) {
len = string.size() - from;
Expand Down
4 changes: 2 additions & 2 deletions rct/String.h
Original file line number Diff line number Diff line change
Expand Up @@ -768,12 +768,12 @@ class String
std::string mString;
};

inline const bool operator==(const char *l, const String &r)
inline bool operator==(const char *l, const String &r)
{
return r.operator==(l);
}

inline const bool operator!=(const char *l, const String &r)
inline bool operator!=(const char *l, const String &r)
{
return r.operator!=(l);
}
Expand Down

0 comments on commit 2b2c0d5

Please sign in to comment.