mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Misc: Fix static analysis issues
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user