diff options
author | Willem Jan Palenstijn | 2011-06-03 14:42:25 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-06-03 14:42:25 +0200 |
commit | 87070cbdc8f8c08ca10b16ce3a3ded70c5f52e2b (patch) | |
tree | ab480d14d3b981cd9d576d9f05ce550cfc4d1494 /engines/testbed | |
parent | b16d6e8bb26e6c411e76c18afab104d535c57387 (diff) | |
download | scummvm-rg350-87070cbdc8f8c08ca10b16ce3a3ded70c5f52e2b.tar.gz scummvm-rg350-87070cbdc8f8c08ca10b16ce3a3ded70c5f52e2b.tar.bz2 scummvm-rg350-87070cbdc8f8c08ca10b16ce3a3ded70c5f52e2b.zip |
TESTBED: Remove another static and a confusing comment
Diffstat (limited to 'engines/testbed')
-rw-r--r-- | engines/testbed/misc.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/testbed/misc.cpp b/engines/testbed/misc.cpp index 70a0d88695..642e0b8ae2 100644 --- a/engines/testbed/misc.cpp +++ b/engines/testbed/misc.cpp @@ -30,7 +30,6 @@ Common::String MiscTests::getHumanReadableFormat(TimeDate &td) { void MiscTests::timerCallback(void *arg) { // Increment arg which actually points to an int - // arg must point to a static data, threads otherwise have their own stack int &valToModify = *((int *) arg); valToModify = 999; // some arbitrary value } @@ -110,7 +109,7 @@ TestExitStatus MiscTests::testDateTime() { } TestExitStatus MiscTests::testTimers() { - static int valToModify = 0; + int valToModify = 0; if (g_system->getTimerManager()->installTimerProc(timerCallback, 100000, &valToModify)) { g_system->delayMillis(150); g_system->getTimerManager()->removeTimerProc(timerCallback); |