all repos — fluxbox @ a1385e4018189170eeeedcf56a9c84df707c32d8

custom fork of the fluxbox windowmanager

fixed compiler warning 'comparison between signed and unsigned integer expressions'
Mathias Gumz akira at fluxbox dot org
commit

a1385e4018189170eeeedcf56a9c84df707c32d8

parent

e23c2c4d1b777fffd4090b4120119027efb30b5e

1 files changed, 7 insertions(+), 7 deletions(-)

jump to
M src/ClockTool.ccsrc/ClockTool.cc

@@ -57,13 +57,13 @@ */

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) {