diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ClockTool.cc | 14 |
1 files 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 { | |||
57 | 57 | ||
58 | int showSeconds(const std::string& fmt_string) { | 58 | int showSeconds(const std::string& fmt_string) { |
59 | 59 | ||
60 | return fmt_string.find("%c") != -1 | 60 | return fmt_string.find("%c") != std::string::npos |
61 | || fmt_string.find("%r") != -1 | 61 | || fmt_string.find("%r") != std::string::npos |
62 | || fmt_string.find("%s") != -1 | 62 | || fmt_string.find("%s") != std::string::npos |
63 | || fmt_string.find("%S") != -1 | 63 | || fmt_string.find("%S") != std::string::npos |
64 | || fmt_string.find("%T") != -1 | 64 | || fmt_string.find("%T") != std::string::npos |
65 | || fmt_string.find("%X") != -1 | 65 | || fmt_string.find("%X") != std::string::npos |
66 | || fmt_string.find("%+") != -1; | 66 | || fmt_string.find("%+") != std::string::npos; |
67 | } | 67 | } |
68 | 68 | ||
69 | timeval calcNextTimeout(const std::string& fmt_string) { | 69 | timeval calcNextTimeout(const std::string& fmt_string) { |