aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2017-02-18 17:22:57 +0100
committerjackpoz <giacomopoz@gmail.com>2017-02-25 13:33:51 +0100
commitb375bab22592daaaa1fc387c4f6a1fb9564cbcc6 (patch)
tree41e86712793cc44db541891aab42717779d16bb6
parentd5ccd1717596f7914a8783c1f15b97b614975650 (diff)
Core/Misc: Fix static analysis issues
-rw-r--r--src/common/Logging/AppenderFile.cpp2
-rw-r--r--src/common/Logging/Log.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/Logging/AppenderFile.cpp b/src/common/Logging/AppenderFile.cpp
index cfd8732bd5c..8d9ea36bd52 100644
--- a/src/common/Logging/AppenderFile.cpp
+++ b/src/common/Logging/AppenderFile.cpp
@@ -42,7 +42,7 @@ AppenderFile::AppenderFile(uint8 id, std::string const& name, LogLevel level, Ap
if (flags & APPENDER_FLAGS_USE_TIMESTAMP)
{
- size_t dot_pos = _fileName.find_last_of(".");
+ size_t dot_pos = _fileName.find_last_of('.');
if (dot_pos != std::string::npos)
_fileName.insert(dot_pos, sLog->GetLogsTimestamp());
else
diff --git a/src/common/Logging/Log.h b/src/common/Logging/Log.h
index a4e0cb6a5dc..189971561fc 100644
--- a/src/common/Logging/Log.h
+++ b/src/common/Logging/Log.h
@@ -126,7 +126,7 @@ inline Logger const* Log::GetLoggerByType(std::string const& type) const
return NULL;
std::string parentLogger = LOGGER_ROOT;
- size_t found = type.find_last_of(".");
+ size_t found = type.find_last_of('.');
if (found != std::string::npos)
parentLogger = type.substr(0,found);