summaryrefslogtreecommitdiff
path: root/include/hashcomp.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-03-10 15:29:47 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-03-10 15:29:47 +0000
commit07ca4f5789bb54f9bfe0e24e68c5515d9708d9ee (patch)
tree04304828cac45c3e7531196784687e4f38100c8d /include/hashcomp.h
parent902f5b36810fa8d367dacb6895f79d58afd619a1 (diff)
Fix the operator== for irc::string -> std::string to be const&, the lack of const was stopping them being used in certain situations, this saves us a bunch of assign()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6643 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/hashcomp.h')
-rw-r--r--include/hashcomp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hashcomp.h b/include/hashcomp.h
index 323b35980..79c7627a0 100644
--- a/include/hashcomp.h
+++ b/include/hashcomp.h
@@ -530,8 +530,8 @@ 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);
-bool operator== (std::string& leftval, irc::string& rightval);
-bool operator== (irc::string& leftval, std::string& rightval);
+bool operator== (const std::string& leftval, const irc::string& rightval);
+bool operator== (const irc::string& leftval, const std::string& rightval);
std::string assign(const irc::string &other);
irc::string assign(const std::string &other);