aboutsummaryrefslogtreecommitdiff
path: root/src/common/Logging
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2017-11-11 20:27:30 +0100
committerjackpoz <giacomopoz@gmail.com>2017-11-11 20:27:30 +0100
commit97f33dc77945d8f284d14e0eaa994ae1405a3f20 (patch)
tree4742f93d50cc553ef3e2ba2f18b3bec1a59faec5 /src/common/Logging
parent7e73f5f1edd8c99c3639e2a342cf044f6192fb6a (diff)
Core/Misc: Fix static analysis issues
Diffstat (limited to 'src/common/Logging')
-rw-r--r--src/common/Logging/Log.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/Logging/Log.cpp b/src/common/Logging/Log.cpp
index d0ba17b52a7..95b617e7e40 100644
--- a/src/common/Logging/Log.cpp
+++ b/src/common/Logging/Log.cpp
@@ -65,7 +65,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, ',');
auto iter = tokens.begin();
@@ -118,7 +118,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())