summaryrefslogtreecommitdiffstats
path: root/examples/tutorials/threads
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-08-25 15:53:04 +0200
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-08-25 15:54:16 +0200
commit5e6605f7b006225f112b92956961974c8c8ad1a9 (patch)
tree4e00075b970d26f640b952b03a2c32865f6ea3ff /examples/tutorials/threads
parent794feb002ad468bcfa60d1edc55637273fef5832 (diff)
Fix building of examples.
Change-Id: Iebb56c81fd13deaa82d8883e3f1529f1a78ebea8 Reviewed-on: http://codereview.qt.nokia.com/3603 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'examples/tutorials/threads')
-rw-r--r--examples/tutorials/threads/movedobject/thread.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/tutorials/threads/movedobject/thread.cpp b/examples/tutorials/threads/movedobject/thread.cpp
index 6dfe8ff159..d8a17eefe6 100644
--- a/examples/tutorials/threads/movedobject/thread.cpp
+++ b/examples/tutorials/threads/movedobject/thread.cpp
@@ -43,7 +43,7 @@
/*
* QThread derived class with additional capability to move a QObject to the
* new thread, to stop the thread and move the QObject back to the thread where
- *it came from.
+ *it came from.
*/
Thread::Thread( QObject *parent)
@@ -68,7 +68,6 @@ void Thread::launchWorker(QObject *worker)
{
worker = worker;
start();
- int i=0;
worker->moveToThread(this);
shutDownHelper->moveToThread(this);
connect(shutDownHelper, SIGNAL(mapped(int) ), this, SLOT(stopExecutor()), Qt::DirectConnection );