aboutsummaryrefslogtreecommitdiff
path: root/engines/testbed/misc.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2011-06-03 14:42:25 +0200
committerWillem Jan Palenstijn2011-06-03 14:42:25 +0200
commit87070cbdc8f8c08ca10b16ce3a3ded70c5f52e2b (patch)
treeab480d14d3b981cd9d576d9f05ce550cfc4d1494 /engines/testbed/misc.cpp
parentb16d6e8bb26e6c411e76c18afab104d535c57387 (diff)
downloadscummvm-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/misc.cpp')
-rw-r--r--engines/testbed/misc.cpp3
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);