fixed compiler warning 'comparison between signed and unsigned integer expressions'
This commit is contained in:
parent
e23c2c4d1b
commit
a1385e4018
1 changed files with 7 additions and 7 deletions
|
@ -57,13 +57,13 @@ namespace {
|
||||||
|
|
||||||
int showSeconds(const std::string& fmt_string) {
|
int showSeconds(const std::string& fmt_string) {
|
||||||
|
|
||||||
return fmt_string.find("%c") != -1
|
return fmt_string.find("%c") != std::string::npos
|
||||||
|| fmt_string.find("%r") != -1
|
|| fmt_string.find("%r") != std::string::npos
|
||||||
|| fmt_string.find("%s") != -1
|
|| fmt_string.find("%s") != std::string::npos
|
||||||
|| fmt_string.find("%S") != -1
|
|| fmt_string.find("%S") != std::string::npos
|
||||||
|| fmt_string.find("%T") != -1
|
|| fmt_string.find("%T") != std::string::npos
|
||||||
|| fmt_string.find("%X") != -1
|
|| fmt_string.find("%X") != std::string::npos
|
||||||
|| fmt_string.find("%+") != -1;
|
|| fmt_string.find("%+") != std::string::npos;
|
||||||
}
|
}
|
||||||
|
|
||||||
timeval calcNextTimeout(const std::string& fmt_string) {
|
timeval calcNextTimeout(const std::string& fmt_string) {
|
||||||
|
|
Loading…
Reference in a new issue