mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Stop misusing volatile keyword
This commit is contained in:
parent
4c9be808a7
commit
27cb54c1db
4 changed files with 11 additions and 11 deletions
|
@ -253,7 +253,7 @@ const std::string Logger::getThreadName()
|
|||
|
||||
void Logger::log(LogLevel lev, const std::string &text)
|
||||
{
|
||||
if (m_silenced_levels[lev])
|
||||
if (isLevelSilenced(lev))
|
||||
return;
|
||||
|
||||
const std::string thread_name = getThreadName();
|
||||
|
@ -267,7 +267,7 @@ void Logger::log(LogLevel lev, const std::string &text)
|
|||
|
||||
void Logger::logRaw(LogLevel lev, const std::string &text)
|
||||
{
|
||||
if (m_silenced_levels[lev])
|
||||
if (isLevelSilenced(lev))
|
||||
return;
|
||||
|
||||
logToOutputsRaw(lev, text);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue