Skip to content

Commit 4b9c6a1

Browse files
committed
Renamed _stopped to mStopped
1 parent e08859e commit 4b9c6a1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/timer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Timer::Timer(const std::string& str, unsigned int showtimeMode, TimerResultsIntf
7676
, mTimerResults(timerResults)
7777
, _start(0)
7878
, _showtimeMode(showtimeMode)
79-
, _stopped(false)
79+
, mStopped(false)
8080
{
8181
if (showtimeMode != SHOWTIME_NONE)
8282
_start = std::clock();
@@ -89,7 +89,7 @@ Timer::~Timer()
8989

9090
void Timer::Stop()
9191
{
92-
if ((_showtimeMode != SHOWTIME_NONE) && !_stopped) {
92+
if ((_showtimeMode != SHOWTIME_NONE) && !mStopped) {
9393
const std::clock_t end = std::clock();
9494
const std::clock_t diff = end - _start;
9595

@@ -102,5 +102,5 @@ void Timer::Stop()
102102
}
103103
}
104104

105-
_stopped = true;
105+
mStopped = true;
106106
}

lib/timer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class CPPCHECKLIB Timer {
8181
TimerResultsIntf* mTimerResults;
8282
std::clock_t _start;
8383
const unsigned int _showtimeMode;
84-
bool _stopped;
84+
bool mStopped;
8585
};
8686
//---------------------------------------------------------------------------
8787
#endif // timerH

0 commit comments

Comments
 (0)