aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2017-02-18 17:22:57 +0100
committerShauren <shauren.trinity@gmail.com>2019-08-17 20:04:14 +0200
commit9780d23f4768a89b851a66a37adde291a8d8c3f6 (patch)
treec065be2726586a2d6f5890768d8c3e912a855794 /src
parente050a7444e4812e8034108d2cf1e0c1ef16797bc (diff)
Core/Misc: Fix static analysis issues
(cherrypicked from b375bab22592daaaa1fc387c4f6a1fb9564cbcc6)
Diffstat (limited to 'src')
-rw-r--r--src/common/Logging/AppenderFile.cpp2
-rw-r--r--src/common/Logging/Log.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/Logging/AppenderFile.cpp b/src/common/Logging/AppenderFile.cpp
index 99bf0151681..001ce9d1b5b 100644
--- a/src/common/Logging/AppenderFile.cpp
+++ b/src/common/Logging/AppenderFile.cpp
@@ -38,7 +38,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.cpp b/src/common/Logging/Log.cpp
index fcf4ddf7271..28238c9eec3 100644
--- a/src/common/Logging/Log.cpp
+++ b/src/common/Logging/Log.cpp
@@ -247,7 +247,7 @@ 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);