diff options
Diffstat (limited to 'src/hashcomp.cpp')
-rw-r--r-- | src/hashcomp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index 3ab91531f..0a7264576 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -211,7 +211,7 @@ bool irc::tokenstream::GetToken(std::string &token) n++; } - token = ""; + token.clear(); return false; } @@ -433,14 +433,14 @@ long irc::portparser::GetToken() std::string x = sep->GetToken(); - if (x == "") + if (x.empty()) return 0; while (Overlaps(atoi(x.c_str()))) { x = sep->GetToken(); - if (x == "") + if (x.empty()) return 0; } |