summaryrefslogtreecommitdiff
path: root/src/hashcomp.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-09 12:10:12 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-09 12:10:12 +0000
commit0161215f42ccbfe45d1aef626f830d39486ef699 (patch)
tree93736dbf74c0e87e31e9d7ed49f2049b01b9ac4e /src/hashcomp.cpp
parent3936814ac6919c7c2dca75fac737a46c30510603 (diff)
Change some = "" to clear() and some == "" to .empty()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7263 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/hashcomp.cpp')
-rw-r--r--src/hashcomp.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp
index 3ab91531f..0a7264576 100644
--- a/src/hashcomp.cpp
+++ b/src/hashcomp.cpp
@@ -211,7 +211,7 @@ bool irc::tokenstream::GetToken(std::string &token)
n++;
}
- token = "";
+ token.clear();
return false;
}
@@ -433,14 +433,14 @@ long irc::portparser::GetToken()
std::string x = sep->GetToken();
- if (x == "")
+ if (x.empty())
return 0;
while (Overlaps(atoi(x.c_str())))
{
x = sep->GetToken();
- if (x == "")
+ if (x.empty())
return 0;
}