From 8942c3cd3217e5c68f01e3cb344709971921fc97 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 19 Feb 2006 23:17:17 +0000 Subject: Tweaks git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3261 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/hashcomp.h | 8 ++++---- src/hashcomp.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/hashcomp.h b/include/hashcomp.h index 0d6bc7e6f..b8921ced2 100644 --- a/include/hashcomp.h +++ b/include/hashcomp.h @@ -140,9 +140,9 @@ std::istream& operator>>(std::istream &is, irc::string &str); * and comparison - Brain */ -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); +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); #endif diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index c5725a0bd..ee485591f 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -142,22 +142,22 @@ int irc::irc_char_traits::compare(const char* str1, const char* str2, size_t n) return 0; } -std::string& operator+ (std::string& leftval, irc::string& rightval) +std::string operator+ (std::string& leftval, irc::string& rightval) { return leftval + std::string(rightval.c_str()); } -irc::string& operator+ (irc::string& leftval, std::string& rightval) +irc::string operator+ (irc::string& leftval, std::string& rightval) { return leftval + irc::string(rightval.c_str()); } -std::string& operator== (std::string& leftval, irc::string& rightval) +std::string operator== (std::string& leftval, irc::string& rightval) { return (leftval == std::string(rightval.c_str())); } -irc::string& operator== (irc::string& leftval, std::string& rightval) +irc::string operator== (irc::string& leftval, std::string& rightval) { return (rightval == irc::string(leftval.c_str())); } -- cgit v1.2.3