Renaming to ScopedLogLevelChanger.

This commit is contained in:
Alex Zolotarev 2016-01-19 18:22:48 +03:00 committed by Sergey Yershov
parent cfae9d4ba4
commit d2622868bf

View file

@ -36,11 +36,11 @@ namespace my
/// LogLevelSuppressor onlyLERRORAndLCriticalLogsAreEnabled;
/// TEST(SomeFunctionWhichHasDebugOrInfoOrWarningLogs(), ());
/// }
struct LogLevelSuppressor
struct ScopedLogLevelChanger
{
LogLevel m_old = g_LogLevel;
LogLevelSuppressor(LogLevel temporaryLogLevel = LERROR) { g_LogLevel = temporaryLogLevel; }
~LogLevelSuppressor() { g_LogLevel = m_old; }
ScopedLogLevelChanger(LogLevel temporaryLogLevel = LERROR) { g_LogLevel = temporaryLogLevel; }
~ScopedLogLevelChanger() { g_LogLevel = m_old; }
};
}