mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user