diff options
| -rw-r--r-- | src/common/Logging/AppenderFile.cpp | 2 | ||||
| -rw-r--r-- | src/common/Logging/Log.h | 2 | 
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);  | 
