From 33e718d59edca607de428c97980e8cc3ea9d0957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 16 Jun 2018 22:49:51 +0200 Subject: [PATCH] Rename Timer::_str --- lib/timer.cpp | 6 +++--- lib/timer.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/timer.cpp b/lib/timer.cpp index 1c3247413..1af1f1b1e 100644 --- a/lib/timer.cpp +++ b/lib/timer.cpp @@ -72,7 +72,7 @@ void TimerResults::AddResults(const std::string& str, std::clock_t clocks) } Timer::Timer(const std::string& str, unsigned int showtimeMode, TimerResultsIntf* timerResults) - : _str(str) + : mStr(str) , mTimerResults(timerResults) , mStart(0) , mShowTimeMode(showtimeMode) @@ -95,10 +95,10 @@ void Timer::Stop() if (mShowTimeMode == SHOWTIME_FILE) { const double sec = (double)diff / CLOCKS_PER_SEC; - std::cout << _str << ": " << sec << "s" << std::endl; + std::cout << mStr << ": " << sec << "s" << std::endl; } else { if (mTimerResults) - mTimerResults->AddResults(_str, diff); + mTimerResults->AddResults(mStr, diff); } } diff --git a/lib/timer.h b/lib/timer.h index 57e70ccb8..db13fa8cd 100644 --- a/lib/timer.h +++ b/lib/timer.h @@ -77,7 +77,7 @@ private: Timer(const Timer& other); // disallow copying Timer& operator=(const Timer&); // disallow assignments - const std::string _str; + const std::string mStr; TimerResultsIntf* mTimerResults; std::clock_t mStart; const unsigned int mShowTimeMode;