diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/hashcomp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index 45a216e69..67dec4e85 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -171,12 +171,12 @@ irc::string operator+ (irc::string& leftval, std::string& rightval) bool operator== (std::string& leftval, irc::string& rightval) { - return (leftval == std::string(rightval.c_str())); + return (leftval.c_str() == rightval); } bool operator== (irc::string& leftval, std::string& rightval) { - return (rightval == std::string(leftval.c_str())); + return (leftval == rightval.c_str()); } const char* irc::irc_char_traits::find(const char* s1, int n, char c) |