From 87070cbdc8f8c08ca10b16ce3a3ded70c5f52e2b Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Fri, 3 Jun 2011 14:42:25 +0200 Subject: TESTBED: Remove another static and a confusing comment --- engines/testbed/misc.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines/testbed/misc.cpp') 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); -- cgit v1.2.3