From 0b3f568a7506fb7ddc9a24d6ab12a969befb923d Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 26 May 2014 12:07:22 +0200 Subject: Switch to std::string::compare() from substr() in a couple of places --- src/configreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/configreader.cpp') 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; } -- cgit v1.2.3