From a1385e4018189170eeeedcf56a9c84df707c32d8 Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Mon, 23 Aug 2010 19:44:21 +0200 Subject: fixed compiler warning 'comparison between signed and unsigned integer expressions' --- src/ClockTool.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ClockTool.cc b/src/ClockTool.cc index 5892abe..91fea93 100644 --- a/src/ClockTool.cc +++ b/src/ClockTool.cc @@ -57,13 +57,13 @@ namespace { int showSeconds(const std::string& fmt_string) { - return fmt_string.find("%c") != -1 - || fmt_string.find("%r") != -1 - || fmt_string.find("%s") != -1 - || fmt_string.find("%S") != -1 - || fmt_string.find("%T") != -1 - || fmt_string.find("%X") != -1 - || fmt_string.find("%+") != -1; + return fmt_string.find("%c") != std::string::npos + || fmt_string.find("%r") != std::string::npos + || fmt_string.find("%s") != std::string::npos + || fmt_string.find("%S") != std::string::npos + || fmt_string.find("%T") != std::string::npos + || fmt_string.find("%X") != std::string::npos + || fmt_string.find("%+") != std::string::npos; } timeval calcNextTimeout(const std::string& fmt_string) { -- cgit v0.11.2