summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-08-26 12:01:57 +0200
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-08-26 12:12:51 +0200
commit9f5b3ad02302dd7e0ec06aa6a73c61bd2c8f287d (patch)
treea9915446b85ef8d216c3c94180fc8e17086affcc
parent62e3fc09211f0739f37672c18fc19b1a18bbbf62 (diff)
downloadqt4-tools-9f5b3ad02302dd7e0ec06aa6a73c61bd2c8f287d.tar.gz
Fixed compilation on gcc 3.3 and mutex locker lifetime
This fixes the lifetime of the mutex locker, since before it would already be destroyed on the next line. Reviewed-by: Olivier Goffart <olivier.goffart@trolltech.com>
-rw-r--r--src/corelib/kernel/qobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qobject.cpp b/src/corelib/kernel/qobject.cpp
index 2117a2dbe2..ddfc44f521 100644
--- a/src/corelib/kernel/qobject.cpp
+++ b/src/corelib/kernel/qobject.cpp
@@ -2459,7 +2459,7 @@ QObject *QObject::sender() const
{
Q_D(const QObject);
- QMutexLocker(signalSlotLock(this));
+ QMutexLocker locker(signalSlotLock(this));
if (!d->currentSender)
return 0;