summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-19 23:21:41 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-19 23:21:41 +0000
commitbb7ff3b7b6defcfb950b25c632d68425afd0492a (patch)
tree2468025368feb32966fabe8836b53180bb29ada3
parent5e421986716174454f871d08048e2eaf97bfca98 (diff)
AIEEE fucking overloaded operators
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3263 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/hashcomp.h4
-rw-r--r--src/hashcomp.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/hashcomp.h b/include/hashcomp.h
index b8921ced2..7ec813ad6 100644
--- a/include/hashcomp.h
+++ b/include/hashcomp.h
@@ -142,7 +142,7 @@ std::istream& operator>>(std::istream &is, irc::string &str);
std::string operator+ (std::string& leftval, irc::string& rightval);
irc::string operator+ (irc::string& leftval, std::string& rightval);
-std::string operator== (std::string& leftval, irc::string& rightval);
-irc::string operator== (irc::string& leftval, std::string& rightval);
+bool operator== (std::string& leftval, irc::string& rightval);
+bool operator== (irc::string& leftval, std::string& rightval);
#endif
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp
index 3c29a1910..e94813420 100644
--- a/src/hashcomp.cpp
+++ b/src/hashcomp.cpp
@@ -159,7 +159,7 @@ bool operator== (std::string& leftval, irc::string& rightval)
bool operator== (irc::string& leftval, std::string& rightval)
{
- return (rightval == irc::string(leftval.c_str()));
+ return (rightval == std::string(leftval.c_str()));
}
const char* irc::irc_char_traits::find(const char* s1, int n, char c)