From 525917be7fcf28d1bca756076c6988fd85d2726d Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sat, 18 Jan 2020 14:22:28 +0000 Subject: [PATCH] mark Q_Q() macro call argument const where applicable in QFileSystemWatcherPrivate Signed-off-by: Ivailo Monev --- src/core/io/qfilesystemwatcher.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/io/qfilesystemwatcher.cpp b/src/core/io/qfilesystemwatcher.cpp index 26fec0d51..ff09803d0 100644 --- a/src/core/io/qfilesystemwatcher.cpp +++ b/src/core/io/qfilesystemwatcher.cpp @@ -211,7 +211,7 @@ void QPollingFileSystemWatcherEngine::timeout() void QFileSystemWatcherPrivate::initNativeEngine() { Q_ASSERT(!watcher); - Q_Q(QFileSystemWatcher); + Q_Q(const QFileSystemWatcher); #if defined(Q_OS_LINUX) watcher = QInotifyFileSystemWatcherEngine::create(); @@ -270,7 +270,7 @@ void QFileSystemWatcherPrivate::init() void QFileSystemWatcherPrivate::initForcedEngine(const QString &forceName) { Q_ASSERT(!watcher); - Q_Q(QFileSystemWatcher); + Q_Q(const QFileSystemWatcher); #if defined(Q_OS_LINUX) if (forceName == QLatin1String("inotify")) { @@ -295,7 +295,7 @@ void QFileSystemWatcherPrivate::initForcedEngine(const QString &forceName) void QFileSystemWatcherPrivate::initPollerEngine() { Q_ASSERT(!watcher); - Q_Q(QFileSystemWatcher); + Q_Q(const QFileSystemWatcher); watcher = new QPollingFileSystemWatcherEngine; // that was a mouthful QObject::connect(watcher, SIGNAL(fileChanged(QString,bool)), -- 2.11.0