summaryrefslogtreecommitdiff
path: root/src/main.c
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/main.c
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/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 69ea0b321..feea4c726 100644
--- a/src/main.c
+++ b/src/main.c
@@ -347,7 +347,7 @@ std::string GetFullProgDir(char *argv0)
services_bin = remainder;
if (services_bin.substr(0, 2) == "./")
services_bin = services_bin.substr(2);
- std::string fullpath = static_cast<std::string>(buffer) + "/" + remainder;
+ std::string fullpath = std::string(buffer) + "/" + remainder;
std::string::size_type n = fullpath.rfind("/" SERVICES_BIN);
return std::string(fullpath, 0, n);
}