projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix warnings about calling an inline function before it is defined inline
[wxWidgets.git]
/
include
/
wx
/
stopwatch.h
diff --git
a/include/wx/stopwatch.h
b/include/wx/stopwatch.h
index dcb5542f20890ee77ba0edaa3ff863bf61ba615a..dec4fa2905bb7d7ae04c320c61dcbe2def3b3213 100644
(file)
--- a/
include/wx/stopwatch.h
+++ b/
include/wx/stopwatch.h
@@
-32,7
+32,7
@@
public:
// pause the stop watch
void Pause()
{
// pause the stop watch
void Pause()
{
- if (
!m_pauseCount++
)
+ if (
m_pauseCount++ == 0
)
m_pause = GetElapsedTime();
}
m_pause = GetElapsedTime();
}
@@
-42,7
+42,7
@@
public:
wxASSERT_MSG( m_pauseCount > 0,
_T("Resuming stop watch which is not paused") );
wxASSERT_MSG( m_pauseCount > 0,
_T("Resuming stop watch which is not paused") );
- if (
!--m_pauseCount
)
+ if (
--m_pauseCount == 0
)
Start(m_pause);
}
Start(m_pause);
}