summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-08-26 10:01:57 (GMT)
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-08-26 10:12:51 (GMT)
commit9f5b3ad02302dd7e0ec06aa6a73c61bd2c8f287d (patch)
treea9915446b85ef8d216c3c94180fc8e17086affcc /src
parent62e3fc09211f0739f37672c18fc19b1a18bbbf62 (diff)
downloadQt-9f5b3ad02302dd7e0ec06aa6a73c61bd2c8f287d.zip
Qt-9f5b3ad02302dd7e0ec06aa6a73c61bd2c8f287d.tar.gz
Qt-9f5b3ad02302dd7e0ec06aa6a73c61bd2c8f287d.tar.bz2
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>
Diffstat (limited to 'src')
-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 2117a2d..ddfc44f 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;