X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/40ff126ac4ff57ab4aa22a5c7c7ce621479e8739..38b130853f3eaf4cc3af9a2f20c0cdc2e2dda20d:/include/wx/stopwatch.h?ds=sidebyside diff --git a/include/wx/stopwatch.h b/include/wx/stopwatch.h index dcb5542f20..dec4fa2905 100644 --- a/include/wx/stopwatch.h +++ b/include/wx/stopwatch.h @@ -32,7 +32,7 @@ public: // pause the stop watch void Pause() { - if ( !m_pauseCount++ ) + if ( m_pauseCount++ == 0 ) m_pause = GetElapsedTime(); } @@ -42,7 +42,7 @@ public: wxASSERT_MSG( m_pauseCount > 0, _T("Resuming stop watch which is not paused") ); - if ( !--m_pauseCount ) + if ( --m_pauseCount == 0 ) Start(m_pause); }