diff options
-rw-r--r-- | src/libutil/StringUtils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libutil/StringUtils.cpp b/src/libutil/StringUtils.cpp index 640ce20..eb5a8dd 100644 --- a/src/libutil/StringUtils.cpp +++ b/src/libutil/StringUtils.cpp @@ -48,12 +48,12 @@ std::vector<std::string> split( const string &s, const string &delimiter, bool k bool endswith( const string &s, const string &endstring ) { - unsigned int pos = s.rfind( endstring ); - return pos != string::npos && pos + endstring.length( ) == s.length( ); + string::size_type pos = s.rfind( endstring ); + return ( pos != string::npos ) && ( pos + endstring.length( ) == s.length( ) ); } bool startswith( const string &s, const string &startstring ) { - unsigned int pos = s.find( startstring ); + string::size_type pos = s.find( startstring ); return pos != string::npos; } |