diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-13 01:17:30 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-13 01:17:30 +0000 |
| commit | 0d88137738faca951564e5786b209d9d54c10ee2 (patch) | |
| tree | 28e138da193f6c62c602829967c0d917f2a1a355 /src/main.c | |
| parent | 5bcb780c6d486b603856016dc566b3a403548545 (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.c | 2 |
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); } |
