From d2622868bf6baca0374662fb70f68809c8d86223 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Tue, 19 Jan 2016 18:22:48 +0300 Subject: [PATCH] Renaming to ScopedLogLevelChanger. --- base/logging.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/logging.hpp b/base/logging.hpp index 6c3987f9d1..803103e8d7 100644 --- a/base/logging.hpp +++ b/base/logging.hpp @@ -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; } }; }