This commit is contained in:
Thomas Jentzsch 2019-08-10 17:46:16 +02:00
commit 30f0b03e82
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;