summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-05-26 12:07:22 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-05-26 12:07:22 +0200
commit0b3f568a7506fb7ddc9a24d6ab12a969befb923d (patch)
tree3351ce34fb05378f5d0269ce505de2a4c7498d82 /src/configreader.cpp
parente3bcf95ee996c058c73879c12ac5a487f8dcdf46 (diff)
Switch to std::string::compare() from substr() in a couple of places
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index c4b5c4510..77f61c978 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -176,7 +176,7 @@ void ServerConfig::CrossCheckConnectBlocks(ServerConfig* current)
for(ClassVector::iterator i = current->Classes.begin(); i != current->Classes.end(); ++i)
{
ConnectClass* c = *i;
- if (c->name.substr(0, 8) != "unnamed-")
+ if (c->name.compare(0, 8, "unnamed-", 8))
{
oldBlocksByMask["n" + c->name] = c;
}