Core/Misc: Fix static analysis issues
This commit is contained in:
1 parent
be9a73c0ad
commit
67dc6a7576
7 files changed
+20
-20
No files matched your search
@@ -74,7 +74,7 @@ void Log::CreateAppenderFromConfig(std::string const& appenderName)
|
||||
// Format=type, level, flags, optional1, optional2
|
||||
// if type = File. optional1 = file and option2 = mode
|
||||
// if type = Console. optional1 = Color
|
||||
std::string options = sConfigMgr->GetStringDefault(appenderName.c_str(), "");
|
||||
std::string options = sConfigMgr->GetStringDefault(appenderName, "");
|
||||
|
||||
Tokenizer tokens(options, ',');
|
||||
Tokenizer::const_iterator iter = tokens.begin();
|
||||
@@ -127,7 +127,7 @@ void Log::CreateLoggerFromConfig(std::string const& appenderName)
|
||||
LogLevel level = LOG_LEVEL_DISABLED;
|
||||
uint8 type = uint8(-1);
|
||||
|
||||
std::string options = sConfigMgr->GetStringDefault(appenderName.c_str(), "");
|
||||
std::string options = sConfigMgr->GetStringDefault(appenderName, "");
|
||||
std::string name = appenderName.substr(7);
|
||||
|
||||
if (options.empty())
|
||||
|
||||
Reference in new issue
Block a user