diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2010-08-23 17:44:21 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2010-08-23 17:44:21 (GMT) |
commit | a1385e4018189170eeeedcf56a9c84df707c32d8 (patch) | |
tree | a4101a4dd2038433f353b7fb40d34bc35d7b4775 /src/ClockTool.cc | |
parent | e23c2c4d1b777fffd4090b4120119027efb30b5e (diff) | |
download | fluxbox-a1385e4018189170eeeedcf56a9c84df707c32d8.zip fluxbox-a1385e4018189170eeeedcf56a9c84df707c32d8.tar.bz2 |
fixed compiler warning 'comparison between signed and unsigned integer expressions'
Diffstat (limited to 'src/ClockTool.cc')
-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) { |