From c3434fa53d1c83bc65b640951364f842fe6c79f4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Oct 2012 00:27:51 +0300 Subject: Fix some signed/unsigned chars issues. --- src/utils/stringutils.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/utils/stringutils.h') diff --git a/src/utils/stringutils.h b/src/utils/stringutils.h index 582f7f8ed..9355e1720 100644 --- a/src/utils/stringutils.h +++ b/src/utils/stringutils.h @@ -93,7 +93,7 @@ const char *ipToString(const int address); /** * A safe version of sprintf that returns a std::string of the result. */ -std::string strprintf(char const *const format, ...) +std::string strprintf(const char *const format, ...) #ifdef __GNUC__ /* This attribute is nice: it even works through gettext invokation. For example, gcc will complain that strprintf(_("%s"), 42) is ill-formed. */ @@ -136,7 +136,7 @@ int compareStrI(const std::string &a, const std::string &b); /** * Tells wether the character is a word separator. */ -bool isWordSeparator(const char chr); +bool isWordSeparator(const signed char chr); size_t findI(std::string str, std::string subStr); @@ -176,9 +176,11 @@ void replaceSpecialChars(std::string &text); */ std::string normalize(const std::string &name); -std::set splitToIntSet(const std::string &text, const char separator); +std::set splitToIntSet(const std::string &text, + const char separator); -std::list splitToIntList(const std::string &text, const char separator); +std::list splitToIntList(const std::string &text, + const char separator); std::list splitToStringList(const std::string &text, const char separator); -- cgit v1.2.3-70-g09d2