summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/kernel/qcoreapplication.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp
index 4a4817d..4e9096a 100644
--- a/src/corelib/kernel/qcoreapplication.cpp
+++ b/src/corelib/kernel/qcoreapplication.cpp
@@ -96,17 +96,17 @@
QT_BEGIN_NAMESPACE
-class QLockedMutexUnlocker
+class QMutexUnlocker
{
public:
- inline explicit QLockedMutexUnlocker(QMutex *m)
+ inline explicit QMutexUnlocker(QMutex *m)
: mtx(m)
{ }
- inline ~QLockedMutexUnlocker() { unlock(); }
+ inline ~QMutexUnlocker() { unlock(); }
inline void unlock() { if (mtx) mtx->unlock(); mtx = 0; }
private:
- Q_DISABLE_COPY(QLockedMutexUnlocker)
+ Q_DISABLE_COPY(QMutexUnlocker)
QMutex *mtx;
};
@@ -1106,7 +1106,7 @@ void QCoreApplication::postEvent(QObject *receiver, QEvent *event, int priority)
data->postEventList.mutex.lock();
}
- QLockedMutexUnlocker locker(&data->postEventList.mutex);
+ QMutexUnlocker locker(&data->postEventList.mutex);
// if this is one of the compressible events, do compression
if (receiver->d_func()->postedEvents