summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-13 01:17:30 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-13 01:17:30 +0000
commit0d88137738faca951564e5786b209d9d54c10ee2 (patch)
tree28e138da193f6c62c602829967c0d917f2a1a355 /src/core
parent5bcb780c6d486b603856016dc566b3a403548545 (diff)
Code style cleanup, replace static_cast<std::string>() 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
Diffstat (limited to 'src/core')
-rw-r--r--src/core/os_sgline.c2
1 files changed, 1 insertions, 1 deletions
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<std::string>(rest).find(':') == std::string::npos)
+ if (std::string(rest).find(':') == std::string::npos)
{
this->OnSyntaxError(u);
return MOD_CONT;