From 0276e5138a8f886fe709ffed534aaf5ff826b5be Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 18 May 2008 17:51:36 +0000 Subject: Remove .c_str()'s in match() calls that are no longer needed as match() natively takes std::strings git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9737 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/xline.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/xline.cpp') diff --git a/src/xline.cpp b/src/xline.cpp index 1e2e415cd..1b56f2920 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -532,7 +532,7 @@ void QLine::Apply(User* u) bool ZLine::Matches(const std::string &str) { - if (match(str.c_str(), this->ipaddr, true)) + if (match(str, this->ipaddr, true)) return true; else return false; @@ -540,7 +540,7 @@ bool ZLine::Matches(const std::string &str) bool QLine::Matches(const std::string &str) { - if (match(str.c_str(), this->nick)) + if (match(str, this->nick)) return true; return false; @@ -548,17 +548,17 @@ bool QLine::Matches(const std::string &str) bool ELine::Matches(const std::string &str) { - return ((match(str.c_str(), matchtext.c_str(), true))); + return ((match(str, matchtext, true))); } bool KLine::Matches(const std::string &str) { - return ((match(str.c_str(), matchtext.c_str(), true))); + return ((match(str.c_str(), matchtext, true))); } bool GLine::Matches(const std::string &str) { - return ((match(str.c_str(), matchtext.c_str(), true))); + return ((match(str, matchtext, true))); } void ELine::OnAdd() -- cgit v1.2.3