Fix minor clang warnings.

This commit is contained in:
Stephen Anthony 2019-08-10 09:48:57 -02:30
parent ce10108660
commit bab08b2660
2 changed files with 3 additions and 3 deletions

View File

@ -310,7 +310,7 @@ void FBSurface::frameRect(uInt32 x, uInt32 y, uInt32 w, uInt32 h,
} }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void FBSurface::wrapString(const string inStr, int pos, string& leftStr, string& rightStr) const void FBSurface::wrapString(const string& inStr, int pos, string& leftStr, string& rightStr) const
{ {
for(int i = pos; i > 0; --i) for(int i = pos; i > 0; --i)
{ {

View File

@ -364,11 +364,11 @@ class FBSurface
*/ */
bool checkBounds(const uInt32 x, const uInt32 y) const; bool checkBounds(const uInt32 x, const uInt32 y) const;
void wrapString(const string inStr, int pos, string& leftStr, string& rightStr) const; void wrapString(const string& inStr, int pos, string& leftStr, string& rightStr) const;
/** /**
Check if the given character is a whitespace. Check if the given character is a whitespace.
@param c Character to check @param s Character to check
@return True if whitespace character @return True if whitespace character
*/ */
bool isWhiteSpace(const char s) const; bool isWhiteSpace(const char s) const;