From c7fb2ee98760f475329af4e101a616579589b202 Mon Sep 17 00:00:00 2001 From: Guenter Obiltschnig Date: Sun, 16 Nov 2014 21:51:10 +0100 Subject: [PATCH] fix for gcc --- Foundation/testsuite/src/ThreadTest.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Foundation/testsuite/src/ThreadTest.cpp b/Foundation/testsuite/src/ThreadTest.cpp index b3cb70746..e9fa73072 100644 --- a/Foundation/testsuite/src/ThreadTest.cpp +++ b/Foundation/testsuite/src/ThreadTest.cpp @@ -363,16 +363,17 @@ void ThreadTest::testThreadFunction() } +struct Functor +{ + void operator () () + { + ++MyRunnable::_staticVar; + } +}; + + void ThreadTest::testThreadFunctor() { - struct Functor - { - void operator () () - { - ++MyRunnable::_staticVar; - } - }; - Thread thread; assert (!thread.isRunning());