From bab08b2660bdbdd5ec0a2488190b6e61675f1908 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Sat, 10 Aug 2019 09:48:57 -0230 Subject: [PATCH] Fix minor clang warnings. --- src/emucore/FBSurface.cxx | 2 +- src/emucore/FBSurface.hxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/emucore/FBSurface.cxx b/src/emucore/FBSurface.cxx index 83069309e..56e0274b6 100644 --- a/src/emucore/FBSurface.cxx +++ b/src/emucore/FBSurface.cxx @@ -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) { diff --git a/src/emucore/FBSurface.hxx b/src/emucore/FBSurface.hxx index 54a46e15c..ce7e8eef7 100644 --- a/src/emucore/FBSurface.hxx +++ b/src/emucore/FBSurface.hxx @@ -364,11 +364,11 @@ class FBSurface */ 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. - @param c Character to check + @param s Character to check @return True if whitespace character */ bool isWhiteSpace(const char s) const;