From 0d88137738faca951564e5786b209d9d54c10ee2 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Tue, 13 Oct 2009 01:17:30 +0000 Subject: Code style cleanup, replace static_cast() with std::string(), slight updates to config reader from InspIRCd. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2555 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/os_sgline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/os_sgline.c b/src/core/os_sgline.c index a6fac789c..bf1ee4112 100644 --- a/src/core/os_sgline.c +++ b/src/core/os_sgline.c @@ -64,7 +64,7 @@ class CommandOSSGLine : public Command } snprintf(rest, sizeof(rest), "%s%s%s", param, params.size() > last_param ? " " : "", params.size() > last_param ? params[last_param].c_str() : ""); - if (static_cast(rest).find(':') == std::string::npos) + if (std::string(rest).find(':') == std::string::npos) { this->OnSyntaxError(u); return MOD_CONT; -- cgit