Removed redundant cast to c_str() in ConfigMgr::Reload function.

cppcheck performance warning:
[src/server/shared/Configuration/Config.cpp:62]: (performance) Passing the
result of c_str() to a function that takes std::string as argument no. 1 is
slow and redundant.
This commit is contained in:
Leonid Logvinov
2014-09-07 21:35:37 +02:00
parent d3cced4b03
commit 1e34aa9dcf

View File

@@ -59,7 +59,7 @@ bool ConfigMgr::LoadInitial(std::string const& file, std::string& error)
bool ConfigMgr::Reload(std::string& error)
{
return LoadInitial(_filename.c_str(), error);
return LoadInitial(_filename, error);
}
std::string ConfigMgr::GetStringDefault(std::string const& name, const std::string& def)