]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/stopwatch.h
Compilation fix for old GCC versions.
[wxWidgets.git] / include / wx / stopwatch.h
index dcb5542f20890ee77ba0edaa3ff863bf61ba615a..dec4fa2905bb7d7ae04c320c61dcbe2def3b3213 100644 (file)
@@ -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);
     }