From b375bab22592daaaa1fc387c4f6a1fb9564cbcc6 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sat, 18 Feb 2017 17:22:57 +0100 Subject: Core/Misc: Fix static analysis issues --- src/common/Logging/AppenderFile.cpp | 2 +- src/common/Logging/Log.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3