diff options
187 files changed, 470 insertions, 470 deletions
diff --git a/examples/widgets/itemviews/spreadsheet/printview.cpp b/examples/widgets/itemviews/spreadsheet/printview.cpp index 7700b4ed6a..1d3e794247 100644 --- a/examples/widgets/itemviews/spreadsheet/printview.cpp +++ b/examples/widgets/itemviews/spreadsheet/printview.cpp @@ -70,7 +70,7 @@ void PrintView::print(QPrinter *printer) resize(printer->width(), printer->height()); render(printer); #else - Q_UNUSED(printer) + Q_UNUSED(printer); #endif } diff --git a/examples/widgets/richtext/textedit/textedit.cpp b/examples/widgets/richtext/textedit/textedit.cpp index 945869c88c..9504c8769d 100644 --- a/examples/widgets/richtext/textedit/textedit.cpp +++ b/examples/widgets/richtext/textedit/textedit.cpp @@ -570,7 +570,7 @@ void TextEdit::printPreview(QPrinter *printer) #if defined(QT_PRINTSUPPORT_LIB) && QT_CONFIG(printer) textEdit->print(printer); #else - Q_UNUSED(printer) + Q_UNUSED(printer); #endif } diff --git a/examples/widgets/widgets/elidedlabel/testwidget.cpp b/examples/widgets/widgets/elidedlabel/testwidget.cpp index 4e013cc5de..6e7930a359 100644 --- a/examples/widgets/widgets/elidedlabel/testwidget.cpp +++ b/examples/widgets/widgets/elidedlabel/testwidget.cpp @@ -130,7 +130,7 @@ TestWidget::TestWidget(QWidget *parent) //! [6] void TestWidget::resizeEvent(QResizeEvent *event) { - Q_UNUSED(event) + Q_UNUSED(event); int maxWidth = widthSlider->width(); widthSlider->setMaximum(maxWidth); diff --git a/mkspecs/devices/linux-arm-amlogic-8726M-g++/qeglfshooks_8726m.cpp b/mkspecs/devices/linux-arm-amlogic-8726M-g++/qeglfshooks_8726m.cpp index 184a47b683..aa808aeede 100644 --- a/mkspecs/devices/linux-arm-amlogic-8726M-g++/qeglfshooks_8726m.cpp +++ b/mkspecs/devices/linux-arm-amlogic-8726M-g++/qeglfshooks_8726m.cpp @@ -75,8 +75,8 @@ QSize QEglFS8726MHooks::screenSize() const EGLNativeWindowType QEglFS8726MHooks::createNativeWindow(QPlatformWindow *window, const QSize &size, const QSurfaceFormat &format) { - Q_UNUSED(window) - Q_UNUSED(format) + Q_UNUSED(window); + Q_UNUSED(format); fbdev_window *window = new fbdev_window; window->width = size.width(); diff --git a/qmake/library/qmakevfs.cpp b/qmake/library/qmakevfs.cpp index 3ccfcc78ee..a187749ee1 100644 --- a/qmake/library/qmakevfs.cpp +++ b/qmake/library/qmakevfs.cpp @@ -142,12 +142,12 @@ bool QMakeVfs::writeFile(int id, QIODevice::OpenMode mode, VfsFlags flags, QMutexLocker locker(&m_mutex); # endif QString *cont = &m_files[id]; - Q_UNUSED(flags) + Q_UNUSED(flags); if (mode & QIODevice::Append) *cont += contents; else *cont = contents; - Q_UNUSED(errStr) + Q_UNUSED(errStr); return true; #else QFileInfo qfi(fileNameForId(id)); @@ -243,7 +243,7 @@ bool QMakeVfs::exists(const QString &fn, VfsFlags flags) if (it != m_files.constEnd()) return it->constData() != m_magicMissing.constData(); #else - Q_UNUSED(flags) + Q_UNUSED(flags); #endif bool ex = IoUtils::fileType(fn) == IoUtils::FileIsRegular; #ifndef PROEVALUATOR_FULL diff --git a/qmake/library/registry.cpp b/qmake/library/registry.cpp index 3391ab9512..930e8e2ee6 100644 --- a/qmake/library/registry.cpp +++ b/qmake/library/registry.cpp @@ -147,7 +147,7 @@ QString qt_readRegistryKey(HKEY parentHandle, const QString &rSubkey, unsigned l RegCloseKey(handle); #else Q_UNUSED(parentHandle); - Q_UNUSED(rSubkey) + Q_UNUSED(rSubkey); Q_UNUSED(options); #endif diff --git a/qmake/option.cpp b/qmake/option.cpp index 2d5ef9dfd6..58688ab2d6 100644 --- a/qmake/option.cpp +++ b/qmake/option.cpp @@ -613,7 +613,7 @@ void EvalHandler::message(int type, const QString &msg, const QString &fileName, void EvalHandler::fileMessage(int type, const QString &msg) { - Q_UNUSED(type) + Q_UNUSED(type); fprintf(stderr, "%s\n", qPrintable(msg)); } diff --git a/src/corelib/io/qabstractfileengine.cpp b/src/corelib/io/qabstractfileengine.cpp index 070139b608..cc603dd63f 100644 --- a/src/corelib/io/qabstractfileengine.cpp +++ b/src/corelib/io/qabstractfileengine.cpp @@ -1076,7 +1076,7 @@ QFileInfo QAbstractFileEngineIterator::currentFileInfo() const */ QVariant QAbstractFileEngineIterator::entryInfo(EntryInfoType type) const { - Q_UNUSED(type) + Q_UNUSED(type); return QVariant(); } diff --git a/src/corelib/io/qdir.cpp b/src/corelib/io/qdir.cpp index 8bf87eacae..e202be154a 100644 --- a/src/corelib/io/qdir.cpp +++ b/src/corelib/io/qdir.cpp @@ -1100,7 +1100,7 @@ QT_WARNING_DISABLE_DEPRECATED QResource::addSearchPath(path); QT_WARNING_POP #else - Q_UNUSED(path) + Q_UNUSED(path); #endif } #endif diff --git a/src/corelib/io/qfilesystemengine_unix.cpp b/src/corelib/io/qfilesystemengine_unix.cpp index d91807c342..fb41b372a2 100644 --- a/src/corelib/io/qfilesystemengine_unix.cpp +++ b/src/corelib/io/qfilesystemengine_unix.cpp @@ -615,7 +615,7 @@ void QFileSystemMetaData::fillFromDirEnt(const QT_DIRENT &entry) clear(); } #else - Q_UNUSED(entry) + Q_UNUSED(entry); #endif } diff --git a/src/corelib/io/qfilesystemengine_win.cpp b/src/corelib/io/qfilesystemengine_win.cpp index e91a7558d7..4e7824522c 100644 --- a/src/corelib/io/qfilesystemengine_win.cpp +++ b/src/corelib/io/qfilesystemengine_win.cpp @@ -1321,9 +1321,9 @@ QFileSystemEntry QFileSystemEngine::currentPath() bool QFileSystemEngine::createLink(const QFileSystemEntry &source, const QFileSystemEntry &target, QSystemError &error) { Q_ASSERT(false); - Q_UNUSED(source) - Q_UNUSED(target) - Q_UNUSED(error) + Q_UNUSED(source); + Q_UNUSED(target); + Q_UNUSED(error); return false; // TODO implement; - code needs to be moved from qfsfileengine_win.cpp } diff --git a/src/corelib/io/qfilesystemiterator_unix.cpp b/src/corelib/io/qfilesystemiterator_unix.cpp index fd96298f69..c69138e3ba 100644 --- a/src/corelib/io/qfilesystemiterator_unix.cpp +++ b/src/corelib/io/qfilesystemiterator_unix.cpp @@ -66,9 +66,9 @@ QFileSystemIterator::QFileSystemIterator(const QFileSystemEntry &entry, QDir::Fi , dirEntry(nullptr) , lastError(0) { - Q_UNUSED(filters) - Q_UNUSED(nameFilters) - Q_UNUSED(flags) + Q_UNUSED(filters); + Q_UNUSED(nameFilters); + Q_UNUSED(flags); if ((dir = QT_OPENDIR(nativePath.constData())) == nullptr) { lastError = errno; diff --git a/src/corelib/io/qfilesystemiterator_win.cpp b/src/corelib/io/qfilesystemiterator_win.cpp index 65596643bc..ca9f83c0ab 100644 --- a/src/corelib/io/qfilesystemiterator_win.cpp +++ b/src/corelib/io/qfilesystemiterator_win.cpp @@ -57,8 +57,8 @@ QFileSystemIterator::QFileSystemIterator(const QFileSystemEntry &entry, QDir::Fi , uncShareIndex(0) , onlyDirs(false) { - Q_UNUSED(nameFilters) - Q_UNUSED(flags) + Q_UNUSED(nameFilters); + Q_UNUSED(flags); if (nativePath.endsWith(QLatin1String(".lnk"))) { QFileSystemMetaData metaData; QFileSystemEntry link = QFileSystemEngine::getLinkTarget(entry, metaData); diff --git a/src/corelib/io/qiodevice.cpp b/src/corelib/io/qiodevice.cpp index cc1d110252..9def33ad9f 100644 --- a/src/corelib/io/qiodevice.cpp +++ b/src/corelib/io/qiodevice.cpp @@ -102,7 +102,7 @@ static void checkWarnMessage(const QIODevice *device, const char *function, cons d << ", \"" << QDir::toNativeSeparators(f->fileName()) << '"'; d << ')'; #else - Q_UNUSED(device) + Q_UNUSED(device); #endif // !QT_NO_QOBJECT d << ": " << what; #else diff --git a/src/corelib/io/qsettings_wasm.cpp b/src/corelib/io/qsettings_wasm.cpp index 8d8f4b505c..949b478c40 100644 --- a/src/corelib/io/qsettings_wasm.cpp +++ b/src/corelib/io/qsettings_wasm.cpp @@ -126,7 +126,7 @@ QSettingsPrivate *QSettingsPrivate::create(QSettings::Format format, const QString &organization, const QString &application) { - Q_UNUSED(format) + Q_UNUSED(format); if (organization == QLatin1String("Qt")) { QString organizationDomain = QCoreApplication::organizationDomain(); diff --git a/src/corelib/io/qstandardpaths_win.cpp b/src/corelib/io/qstandardpaths_win.cpp index a120db32fc..3637c11c0a 100644 --- a/src/corelib/io/qstandardpaths_win.cpp +++ b/src/corelib/io/qstandardpaths_win.cpp @@ -84,7 +84,7 @@ static void appendOrganizationAndApp(QString &path) // Courtesy qstandardpaths_u if (!appName.isEmpty()) path += QLatin1Char('/') + appName; #else // !QT_BOOTSTRAPPED - Q_UNUSED(path) + Q_UNUSED(path); #endif } diff --git a/src/corelib/io/qtemporaryfile.cpp b/src/corelib/io/qtemporaryfile.cpp index e6a160c3b2..56a3d1982f 100644 --- a/src/corelib/io/qtemporaryfile.cpp +++ b/src/corelib/io/qtemporaryfile.cpp @@ -242,7 +242,7 @@ static bool createFileFromTemplate(NativeFileHandle &file, QTemporaryFileName &t return false; } #else // POSIX - Q_UNUSED(flags) + Q_UNUSED(flags); file = QT_OPEN(path.constData(), QT_OPEN_CREAT | QT_OPEN_EXCL | QT_OPEN_RDWR | QT_OPEN_LARGEFILE, static_cast<mode_t>(mode)); diff --git a/src/corelib/itemmodels/qabstractitemmodel.cpp b/src/corelib/itemmodels/qabstractitemmodel.cpp index 27885bcb9b..1bb65336bf 100644 --- a/src/corelib/itemmodels/qabstractitemmodel.cpp +++ b/src/corelib/itemmodels/qabstractitemmodel.cpp @@ -1942,9 +1942,9 @@ bool QAbstractItemModel::canDropMimeData(const QMimeData *data, Qt::DropAction a int row, int column, const QModelIndex &parent) const { - Q_UNUSED(row) - Q_UNUSED(column) - Q_UNUSED(parent) + Q_UNUSED(row); + Q_UNUSED(column); + Q_UNUSED(parent); if (!(action & supportedDropActions())) return false; diff --git a/src/corelib/itemmodels/qidentityproxymodel.cpp b/src/corelib/itemmodels/qidentityproxymodel.cpp index 209626a0ee..8634ddd520 100644 --- a/src/corelib/itemmodels/qidentityproxymodel.cpp +++ b/src/corelib/itemmodels/qidentityproxymodel.cpp @@ -470,9 +470,9 @@ void QIdentityProxyModelPrivate::_q_sourceColumnsInserted(const QModelIndex &par { Q_ASSERT(parent.isValid() ? parent.model() == model : true); Q_Q(QIdentityProxyModel); - Q_UNUSED(parent) - Q_UNUSED(start) - Q_UNUSED(end) + Q_UNUSED(parent); + Q_UNUSED(start); + Q_UNUSED(end); q->endInsertColumns(); } @@ -481,11 +481,11 @@ void QIdentityProxyModelPrivate::_q_sourceColumnsMoved(const QModelIndex &source Q_ASSERT(sourceParent.isValid() ? sourceParent.model() == model : true); Q_ASSERT(destParent.isValid() ? destParent.model() == model : true); Q_Q(QIdentityProxyModel); - Q_UNUSED(sourceParent) - Q_UNUSED(sourceStart) - Q_UNUSED(sourceEnd) - Q_UNUSED(destParent) - Q_UNUSED(dest) + Q_UNUSED(sourceParent); + Q_UNUSED(sourceStart); + Q_UNUSED(sourceEnd); + Q_UNUSED(destParent); + Q_UNUSED(dest); q->endMoveColumns(); } @@ -493,9 +493,9 @@ void QIdentityProxyModelPrivate::_q_sourceColumnsRemoved(const QModelIndex &pare { Q_ASSERT(parent.isValid() ? parent.model() == model : true); Q_Q(QIdentityProxyModel); - Q_UNUSED(parent) - Q_UNUSED(start) - Q_UNUSED(end) + Q_UNUSED(parent); + Q_UNUSED(start); + Q_UNUSED(end); q->endRemoveColumns(); } @@ -605,9 +605,9 @@ void QIdentityProxyModelPrivate::_q_sourceRowsInserted(const QModelIndex &parent { Q_ASSERT(parent.isValid() ? parent.model() == model : true); Q_Q(QIdentityProxyModel); - Q_UNUSED(parent) - Q_UNUSED(start) - Q_UNUSED(end) + Q_UNUSED(parent); + Q_UNUSED(start); + Q_UNUSED(end); q->endInsertRows(); } @@ -616,11 +616,11 @@ void QIdentityProxyModelPrivate::_q_sourceRowsMoved(const QModelIndex &sourcePar Q_ASSERT(sourceParent.isValid() ? sourceParent.model() == model : true); Q_ASSERT(destParent.isValid() ? destParent.model() == model : true); Q_Q(QIdentityProxyModel); - Q_UNUSED(sourceParent) - Q_UNUSED(sourceStart) - Q_UNUSED(sourceEnd) - Q_UNUSED(destParent) - Q_UNUSED(dest) + Q_UNUSED(sourceParent); + Q_UNUSED(sourceStart); + Q_UNUSED(sourceEnd); + Q_UNUSED(destParent); + Q_UNUSED(dest); q->endMoveRows(); } @@ -628,9 +628,9 @@ void QIdentityProxyModelPrivate::_q_sourceRowsRemoved(const QModelIndex &parent, { Q_ASSERT(parent.isValid() ? parent.model() == model : true); Q_Q(QIdentityProxyModel); - Q_UNUSED(parent) - Q_UNUSED(start) - Q_UNUSED(end) + Q_UNUSED(parent); + Q_UNUSED(start); + Q_UNUSED(end); q->endRemoveRows(); } diff --git a/src/corelib/itemmodels/qtransposeproxymodel.cpp b/src/corelib/itemmodels/qtransposeproxymodel.cpp index c72128fa7d..83a86d1a97 100644 --- a/src/corelib/itemmodels/qtransposeproxymodel.cpp +++ b/src/corelib/itemmodels/qtransposeproxymodel.cpp @@ -440,8 +440,8 @@ bool QTransposeProxyModel::moveColumns(const QModelIndex &sourceParent, int sour */ void QTransposeProxyModel::sort(int column, Qt::SortOrder order) { - Q_UNUSED(column) - Q_UNUSED(order) + Q_UNUSED(column); + Q_UNUSED(order); return; } diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp index 2894e1a731..7c47e324f5 100644 --- a/src/corelib/kernel/qcoreapplication.cpp +++ b/src/corelib/kernel/qcoreapplication.cpp @@ -2237,8 +2237,8 @@ bool QCoreApplicationPrivate::isTranslatorInstalled(QTranslator *translator) QString QCoreApplication::translate(const char *context, const char *sourceText, const char *disambiguation, int n) { - Q_UNUSED(context) - Q_UNUSED(disambiguation) + Q_UNUSED(context); + Q_UNUSED(disambiguation); QString ret = QString::fromUtf8(sourceText); if (n >= 0) ret.replace(QLatin1String("%n"), QString::number(n)); diff --git a/src/corelib/kernel/qjnionload.cpp b/src/corelib/kernel/qjnionload.cpp index 0550b86553..4b2480ff2a 100644 --- a/src/corelib/kernel/qjnionload.cpp +++ b/src/corelib/kernel/qjnionload.cpp @@ -46,7 +46,7 @@ static const char logTag[] = "QtCore"; Q_CORE_EXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) { - Q_UNUSED(reserved) + Q_UNUSED(reserved); static bool initialized = false; if (initialized) diff --git a/src/corelib/kernel/qmetatype.h b/src/corelib/kernel/qmetatype.h index 90241854fb..335b958c18 100644 --- a/src/corelib/kernel/qmetatype.h +++ b/src/corelib/kernel/qmetatype.h @@ -747,7 +747,7 @@ template <typename T, bool Accepted = true> struct QMetaTypeFunctionHelper { static void Destruct(void *t) { - Q_UNUSED(t) // Silence MSVC that warns for POD types. + Q_UNUSED(t); // Silence MSVC that warns for POD types. static_cast<T*>(t)->~T(); } diff --git a/src/corelib/kernel/qproperty.h b/src/corelib/kernel/qproperty.h index de08a71349..4a323fe8fe 100644 --- a/src/corelib/kernel/qproperty.h +++ b/src/corelib/kernel/qproperty.h @@ -208,7 +208,7 @@ namespace Qt { return QPropertyBinding<std::invoke_result_t<Functor>>(std::forward<Functor>(f), location); } // Work around bogus warning - Q_UNUSED(QtPrivate::is_variant_v<bool>) + Q_UNUSED(QtPrivate::is_variant_v<bool>); } } diff --git a/src/corelib/kernel/qtimerinfo_unix.cpp b/src/corelib/kernel/qtimerinfo_unix.cpp index b425ca3dcb..af880ef522 100644 --- a/src/corelib/kernel/qtimerinfo_unix.cpp +++ b/src/corelib/kernel/qtimerinfo_unix.cpp @@ -116,7 +116,7 @@ timespec qAbsTimespec(const timespec &t) bool QTimerInfoList::timeChanged(timespec *delta) { #ifdef Q_OS_NACL - Q_UNUSED(delta) + Q_UNUSED(delta); return false; // Calling "times" crashes. #endif struct tms unused; diff --git a/src/corelib/serialization/qjsonarray.cpp b/src/corelib/serialization/qjsonarray.cpp index 98ace021fc..bc28c18edd 100644 --- a/src/corelib/serialization/qjsonarray.cpp +++ b/src/corelib/serialization/qjsonarray.cpp @@ -1109,7 +1109,7 @@ bool QJsonArray::operator!=(const QJsonArray &other) const */ void QJsonArray::detach(uint reserve) { - Q_UNUSED(reserve) + Q_UNUSED(reserve); Q_ASSERT(!reserve); detach2(0); } diff --git a/src/corelib/serialization/qjsonobject.cpp b/src/corelib/serialization/qjsonobject.cpp index e573485226..1c7fb7885f 100644 --- a/src/corelib/serialization/qjsonobject.cpp +++ b/src/corelib/serialization/qjsonobject.cpp @@ -1421,7 +1421,7 @@ QJsonObject::const_iterator QJsonObject::constFindImpl(T key) const */ void QJsonObject::detach(uint reserve) { - Q_UNUSED(reserve) + Q_UNUSED(reserve); Q_ASSERT(!reserve); detach2(reserve); } diff --git a/src/corelib/text/qbytearray.cpp b/src/corelib/text/qbytearray.cpp index ee559c6d75..375c64a90c 100644 --- a/src/corelib/text/qbytearray.cpp +++ b/src/corelib/text/qbytearray.cpp @@ -676,7 +676,7 @@ QByteArray qUncompress(const uchar* data, int nbytes) switch (res) { case Z_OK: { Q_ASSERT(len <= alloc); - Q_UNUSED(alloc) + Q_UNUSED(alloc); d.data()[len] = '\0'; d.size = len; return QByteArray(d); diff --git a/src/corelib/thread/qthread_unix.cpp b/src/corelib/thread/qthread_unix.cpp index 5f182df10e..70c1eb4b62 100644 --- a/src/corelib/thread/qthread_unix.cpp +++ b/src/corelib/thread/qthread_unix.cpp @@ -775,7 +775,7 @@ void QThread::setTerminationEnabled(bool enabled) Q_ASSERT_X(thr != nullptr, "QThread::setTerminationEnabled()", "Current thread was not started with QThread."); - Q_UNUSED(thr) + Q_UNUSED(thr); #if defined(Q_OS_ANDROID) Q_UNUSED(enabled); #else diff --git a/src/corelib/thread/qthread_win.cpp b/src/corelib/thread/qthread_win.cpp index ffd476d6d3..b59a9d1bb4 100644 --- a/src/corelib/thread/qthread_win.cpp +++ b/src/corelib/thread/qthread_win.cpp @@ -229,7 +229,7 @@ DWORD WINAPI qt_adopted_thread_watcher_function(LPVOID) QThread *thread = data->thread; Q_ASSERT(thread); auto thread_p = static_cast<QThreadPrivate *>(QObjectPrivate::get(thread)); - Q_UNUSED(thread_p) + Q_UNUSED(thread_p); Q_ASSERT(!thread_p->finished); QThreadPrivate::finish(thread); } diff --git a/src/corelib/time/qtimezoneprivate.cpp b/src/corelib/time/qtimezoneprivate.cpp index ebd08ea7db..873b05295d 100644 --- a/src/corelib/time/qtimezoneprivate.cpp +++ b/src/corelib/time/qtimezoneprivate.cpp @@ -198,15 +198,15 @@ QString QTimeZonePrivate::displayName(QTimeZone::TimeType timeType, QTimeZone::NameType nameType, const QLocale &locale) const { - Q_UNUSED(timeType) - Q_UNUSED(nameType) - Q_UNUSED(locale) + Q_UNUSED(timeType); + Q_UNUSED(nameType); + Q_UNUSED(locale); return QString(); } QString QTimeZonePrivate::abbreviation(qint64 atMSecsSinceEpoch) const { - Q_UNUSED(atMSecsSinceEpoch) + Q_UNUSED(atMSecsSinceEpoch); return QString(); } @@ -217,13 +217,13 @@ int QTimeZonePrivate::offsetFromUtc(qint64 atMSecsSinceEpoch) const int QTimeZonePrivate::standardTimeOffset(qint64 atMSecsSinceEpoch) const { - Q_UNUSED(atMSecsSinceEpoch) + Q_UNUSED(atMSecsSinceEpoch); return invalidSeconds(); } int QTimeZonePrivate::daylightTimeOffset(qint64 atMSecsSinceEpoch) const { - Q_UNUSED(atMSecsSinceEpoch) + Q_UNUSED(atMSecsSinceEpoch); return invalidSeconds(); } @@ -234,13 +234,13 @@ bool QTimeZonePrivate::hasDaylightTime() const bool QTimeZonePrivate::isDaylightTime(qint64 atMSecsSinceEpoch) const { - Q_UNUSED(atMSecsSinceEpoch) + Q_UNUSED(atMSecsSinceEpoch); return false; } QTimeZonePrivate::Data QTimeZonePrivate::data(qint64 forMSecsSinceEpoch) const { - Q_UNUSED(forMSecsSinceEpoch) + Q_UNUSED(forMSecsSinceEpoch); return invalidData(); } @@ -454,13 +454,13 @@ bool QTimeZonePrivate::hasTransitions() const QTimeZonePrivate::Data QTimeZonePrivate::nextTransition(qint64 afterMSecsSinceEpoch) const { - Q_UNUSED(afterMSecsSinceEpoch) + Q_UNUSED(afterMSecsSinceEpoch); return invalidData(); } QTimeZonePrivate::Data QTimeZonePrivate::previousTransition(qint64 beforeMSecsSinceEpoch) const { - Q_UNUSED(beforeMSecsSinceEpoch) + Q_UNUSED(beforeMSecsSinceEpoch); return invalidData(); } @@ -877,8 +877,8 @@ QString QUtcTimeZonePrivate::displayName(QTimeZone::TimeType timeType, QTimeZone::NameType nameType, const QLocale &locale) const { - Q_UNUSED(timeType) - Q_UNUSED(locale) + Q_UNUSED(timeType); + Q_UNUSED(locale); if (nameType == QTimeZone::ShortName) return m_abbreviation; else if (nameType == QTimeZone::OffsetName) @@ -888,19 +888,19 @@ QString QUtcTimeZonePrivate::displayName(QTimeZone::TimeType timeType, QString QUtcTimeZonePrivate::abbreviation(qint64 atMSecsSinceEpoch) const { - Q_UNUSED(atMSecsSinceEpoch) + Q_UNUSED(atMSecsSinceEpoch); return m_abbreviation; } qint32 QUtcTimeZonePrivate::standardTimeOffset(qint64 atMSecsSinceEpoch) const { - Q_UNUSED(atMSecsSinceEpoch) + Q_UNUSED(atMSecsSinceEpoch); return m_offsetFromUtc; } qint32 QUtcTimeZonePrivate::daylightTimeOffset(qint64 atMSecsSinceEpoch) const { - Q_UNUSED(atMSecsSinceEpoch) + Q_UNUSED(atMSecsSinceEpoch); return 0; } diff --git a/src/corelib/time/qtimezoneprivate_icu.cpp b/src/corelib/time/qtimezoneprivate_icu.cpp index 33518994d1..198e1530e4 100644 --- a/src/corelib/time/qtimezoneprivate_icu.cpp +++ b/src/corelib/time/qtimezoneprivate_icu.cpp @@ -440,7 +440,7 @@ QTimeZonePrivate::Data QIcuTimeZonePrivate::nextTransition(qint64 afterMSecsSinc #if U_ICU_VERSION_MAJOR_NUM == 50 return ucalTimeZoneTransition(m_ucal, UCAL_TZ_TRANSITION_NEXT, afterMSecsSinceEpoch); #else - Q_UNUSED(afterMSecsSinceEpoch) + Q_UNUSED(afterMSecsSinceEpoch); return invalidData(); #endif // U_ICU_VERSION_MAJOR_NUM == 50 } @@ -452,7 +452,7 @@ QTimeZonePrivate::Data QIcuTimeZonePrivate::previousTransition(qint64 beforeMSec #if U_ICU_VERSION_MAJOR_NUM == 50 return ucalTimeZoneTransition(m_ucal, UCAL_TZ_TRANSITION_PREVIOUS, beforeMSecsSinceEpoch); #else - Q_UNUSED(beforeMSecsSinceEpoch) + Q_UNUSED(beforeMSecsSinceEpoch); return invalidData(); #endif // U_ICU_VERSION_MAJOR_NUM == 50 } diff --git a/src/corelib/time/qtimezoneprivate_tz.cpp b/src/corelib/time/qtimezoneprivate_tz.cpp index 7a31677db0..32d8b78ac3 100644 --- a/src/corelib/time/qtimezoneprivate_tz.cpp +++ b/src/corelib/time/qtimezoneprivate_tz.cpp @@ -888,8 +888,8 @@ QString QTzTimeZonePrivate::displayName(qint64 atMSecsSinceEpoch, if (m_icu->isValid()) return m_icu->displayName(atMSecsSinceEpoch, nameType, locale); #else - Q_UNUSED(nameType) - Q_UNUSED(locale) + Q_UNUSED(nameType); + Q_UNUSED(locale); #endif return abbreviation(atMSecsSinceEpoch); } @@ -906,9 +906,9 @@ QString QTzTimeZonePrivate::displayName(QTimeZone::TimeType timeType, if (m_icu->isValid()) return m_icu->displayName(timeType, nameType, locale); #else - Q_UNUSED(timeType) - Q_UNUSED(nameType) - Q_UNUSED(locale) + Q_UNUSED(timeType); + Q_UNUSED(nameType); + Q_UNUSED(locale); #endif // If no ICU available then have to use abbreviations instead // Abbreviations don't have GenericTime diff --git a/src/dbus/qdbusintegrator.cpp b/src/dbus/qdbusintegrator.cpp index 64d10d6641..32521c85e7 100644 --- a/src/dbus/qdbusintegrator.cpp +++ b/src/dbus/qdbusintegrator.cpp @@ -1037,7 +1037,7 @@ QDBusConnectionPrivate::QDBusConnectionPrivate(QObject *p) static const bool threads = q_dbus_threads_init_default(); if (::isDebugging == -1) ::isDebugging = qEnvironmentVariableIntValue("QDBUS_DEBUG"); - Q_UNUSED(threads) + Q_UNUSED(threads); #ifdef QDBUS_THREAD_DEBUG if (::isDebugging > 1) diff --git a/src/gui/accessible/linux/atspiadaptor.cpp b/src/gui/accessible/linux/atspiadaptor.cpp index 812ac276b2..8d53be8c42 100644 --- a/src/gui/accessible/linux/atspiadaptor.cpp +++ b/src/gui/accessible/linux/atspiadaptor.cpp @@ -984,7 +984,7 @@ void AtSpiAdaptor::notify(QAccessibleEvent *event) } // send a cursor update - Q_UNUSED(cursorPosition) + Q_UNUSED(cursorPosition); // QDBusVariant cursorData; // cursorData.setVariant(QVariant::fromValue(cursorPosition)); // QVariantList args = packDBusSignalArguments(QString(), cursorPosition, 0, QVariant::fromValue(cursorData)); @@ -1790,7 +1790,7 @@ bool AtSpiAdaptor::textInterface(QAccessibleInterface *interface, const QString } else if (function == QLatin1String("GetAttributeRun")) { int offset = message.arguments().at(0).toInt(); bool includeDefaults = message.arguments().at(1).toBool(); - Q_UNUSED(includeDefaults) + Q_UNUSED(includeDefaults); connection.send(message.createReply(getAttributes(interface, offset, includeDefaults))); } else if (function == QLatin1String("GetAttributeValue")) { int offset = message.arguments().at(0).toInt(); diff --git a/src/gui/accessible/qaccessiblecache.cpp b/src/gui/accessible/qaccessiblecache.cpp index 17c75abcc1..84d0936386 100644 --- a/src/gui/accessible/qaccessiblecache.cpp +++ b/src/gui/accessible/qaccessiblecache.cpp @@ -142,7 +142,7 @@ bool QAccessibleCache::containsObject(QObject *obj) const QAccessible::Id QAccessibleCache::insert(QObject *object, QAccessibleInterface *iface) const { Q_ASSERT(iface); - Q_UNUSED(object) + Q_UNUSED(object); // object might be 0 Q_ASSERT(!containsObject(object)); diff --git a/src/gui/image/qpixmap_blitter_p.h b/src/gui/image/qpixmap_blitter_p.h index d70cbcdcc3..d39905f883 100644 --- a/src/gui/image/qpixmap_blitter_p.h +++ b/src/gui/image/qpixmap_blitter_p.h @@ -120,7 +120,7 @@ inline void QBlittablePlatformPixmap::markRasterOverlay(const QRectF &rect) #ifdef QT_BLITTER_RASTEROVERLAY markRasterOverlayImpl(rect); #else - Q_UNUSED(rect) + Q_UNUSED(rect); #endif } @@ -129,7 +129,7 @@ inline void QBlittablePlatformPixmap::markRasterOverlay(const QVectorPath &path) #ifdef QT_BLITTER_RASTEROVERLAY markRasterOverlayImpl(path.convertToPainterPath().boundingRect()); #else - Q_UNUSED(path) + Q_UNUSED(path); #endif } @@ -141,8 +141,8 @@ inline void QBlittablePlatformPixmap::markRasterOverlay(const QPointF &pos, cons rect.moveBottomLeft(pos); markRasterOverlay(rect); #else - Q_UNUSED(pos) - Q_UNUSED(ti) + Q_UNUSED(pos); + Q_UNUSED(ti); #endif } @@ -153,8 +153,8 @@ inline void QBlittablePlatformPixmap::markRasterOverlay(const QRect *rects, int markRasterOverlay(rects[i]); } #else - Q_UNUSED(rects) - Q_UNUSED(rectCount) + Q_UNUSED(rects); + Q_UNUSED(rectCount); #endif } inline void QBlittablePlatformPixmap::markRasterOverlay(const QRectF *rects, int rectCount) @@ -164,8 +164,8 @@ inline void QBlittablePlatformPixmap::markRasterOverlay(const QRectF *rects, int markRasterOverlay(rects[i]); } #else - Q_UNUSED(rects) - Q_UNUSED(rectCount) + Q_UNUSED(rects); + Q_UNUSED(rectCount); #endif } @@ -203,7 +203,7 @@ inline void QBlittablePlatformPixmap::unmarkRasterOverlay(const QRectF &rect) #ifdef QT_BLITTER_RASTEROVERLAY unmarkRasterOverlayImpl(rect); #else - Q_UNUSED(rect) + Q_UNUSED(rect); #endif } diff --git a/src/gui/image/qpnghandler.cpp b/src/gui/image/qpnghandler.cpp index e01c211cda..7cca0788fe 100644 --- a/src/gui/image/qpnghandler.cpp +++ b/src/gui/image/qpnghandler.cpp @@ -531,7 +531,7 @@ void QPngHandlerPrivate::readPngTexts(png_info *info) text_ptr++; } #else - Q_UNUSED(info) + Q_UNUSED(info); #endif } diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 4d2d79c274..34331e3b0e 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -2676,7 +2676,7 @@ void QGuiApplicationPrivate::processTabletEvent(QWindowSystemInterfacePrivate::T processMouseEvent(&mouseEvent); } #else - Q_UNUSED(e) + Q_UNUSED(e); #endif } @@ -2690,7 +2690,7 @@ void QGuiApplicationPrivate::processTabletEnterProximityEvent(QWindowSystemInter ev.setTimestamp(e->timestamp); QGuiApplication::sendSpontaneousEvent(qGuiApp, &ev); #else - Q_UNUSED(e) + Q_UNUSED(e); #endif } @@ -2704,7 +2704,7 @@ void QGuiApplicationPrivate::processTabletLeaveProximityEvent(QWindowSystemInter ev.setTimestamp(e->timestamp); QGuiApplication::sendSpontaneousEvent(qGuiApp, &ev); #else - Q_UNUSED(e) + Q_UNUSED(e); #endif } @@ -4196,7 +4196,7 @@ void QGuiApplicationPrivate::notifyThemeChanged() #if QT_CONFIG(draganddrop) void QGuiApplicationPrivate::notifyDragStarted(const QDrag *drag) { - Q_UNUSED(drag) + Q_UNUSED(drag); } #endif diff --git a/src/gui/kernel/qhighdpiscaling_p.h b/src/gui/kernel/qhighdpiscaling_p.h index dfacf2a4f3..542506dcb0 100644 --- a/src/gui/kernel/qhighdpiscaling_p.h +++ b/src/gui/kernel/qhighdpiscaling_p.h @@ -179,7 +179,7 @@ inline QRectF scale(const QRectF &rect, qreal scaleFactor, QPoint origin = QPoin inline QMargins scale(const QMargins &margins, qreal scaleFactor, QPoint origin = QPoint(0, 0)) { - Q_UNUSED(origin) + Q_UNUSED(origin); return QMargins(qRound(qreal(margins.left()) * scaleFactor), qRound(qreal(margins.top()) * scaleFactor), qRound(qreal(margins.right()) * scaleFactor), qRound(qreal(margins.bottom()) * scaleFactor)); } diff --git a/src/gui/kernel/qplatformdialoghelper.cpp b/src/gui/kernel/qplatformdialoghelper.cpp index 443f5d2552..4c2e1af84d 100644 --- a/src/gui/kernel/qplatformdialoghelper.cpp +++ b/src/gui/kernel/qplatformdialoghelper.cpp @@ -741,7 +741,7 @@ QStringList QFileDialogOptions::supportedSchemes() const void QPlatformFileDialogHelper::selectMimeTypeFilter(const QString &filter) { - Q_UNUSED(filter) + Q_UNUSED(filter); } QString QPlatformFileDialogHelper::selectedMimeTypeFilter() const @@ -790,7 +790,7 @@ QStringList QPlatformFileDialogHelper::cleanFilterList(const QString &filter) f = match.captured(2); return f.split(QLatin1Char(' '), Qt::SkipEmptyParts); #else - Q_UNUSED(filter) + Q_UNUSED(filter); return QStringList(); #endif } diff --git a/src/gui/kernel/qplatformgraphicsbufferhelper.cpp b/src/gui/kernel/qplatformgraphicsbufferhelper.cpp index ab9a92a383..ff72171b85 100644 --- a/src/gui/kernel/qplatformgraphicsbufferhelper.cpp +++ b/src/gui/kernel/qplatformgraphicsbufferhelper.cpp @@ -255,10 +255,10 @@ bool QPlatformGraphicsBufferHelper::bindSWToTexture(const QPlatformGraphicsBuffe return true; #else - Q_UNUSED(graphicsBuffer) - Q_UNUSED(swizzleRandB) - Q_UNUSED(premultipliedB) - Q_UNUSED(subRect) + Q_UNUSED(graphicsBuffer); + Q_UNUSED(swizzleRandB); + Q_UNUSED(premultipliedB); + Q_UNUSED(subRect); return false; #endif // QT_NO_OPENGL } diff --git a/src/gui/kernel/qplatforminputcontext.cpp b/src/gui/kernel/qplatforminputcontext.cpp index 9771e6ba11..83a05d0221 100644 --- a/src/gui/kernel/qplatforminputcontext.cpp +++ b/src/gui/kernel/qplatforminputcontext.cpp @@ -106,7 +106,7 @@ bool QPlatformInputContext::isValid() const */ bool QPlatformInputContext::hasCapability(Capability capability) const { - Q_UNUSED(capability) + Q_UNUSED(capability); return true; } @@ -136,7 +136,7 @@ void QPlatformInputContext::update(Qt::InputMethodQueries) */ void QPlatformInputContext::invokeAction(QInputMethod::Action action, int cursorPosition) { - Q_UNUSED(cursorPosition) + Q_UNUSED(cursorPosition); // Default behavior for simple ephemeral input contexts. Some // complex input contexts should not be reset here. if (action == QInputMethod::Click) @@ -151,7 +151,7 @@ void QPlatformInputContext::invokeAction(QInputMethod::Action action, int cursor */ bool QPlatformInputContext::filterEvent(const QEvent *event) { - Q_UNUSED(event) + Q_UNUSED(event); return false; } @@ -251,7 +251,7 @@ void QPlatformInputContext::emitInputDirectionChanged(Qt::LayoutDirection newDir */ void QPlatformInputContext::setFocusObject(QObject *object) { - Q_UNUSED(object) + Q_UNUSED(object); } /*! diff --git a/src/gui/kernel/qplatformintegration.cpp b/src/gui/kernel/qplatformintegration.cpp index 63f66e6bf7..090629073a 100644 --- a/src/gui/kernel/qplatformintegration.cpp +++ b/src/gui/kernel/qplatformintegration.cpp @@ -324,7 +324,7 @@ QPlatformSharedGraphicsCache *QPlatformIntegration::createPlatformSharedGraphics */ QPaintEngine *QPlatformIntegration::createImagePaintEngine(QPaintDevice *paintDevice) const { - Q_UNUSED(paintDevice) + Q_UNUSED(paintDevice); return nullptr; } @@ -472,7 +472,7 @@ QStringList QPlatformIntegration::themeNames() const class QPlatformTheme *QPlatformIntegration::createPlatformTheme(const QString &name) const { - Q_UNUSED(name) + Q_UNUSED(name); return new QPlatformTheme; } @@ -483,7 +483,7 @@ class QPlatformTheme *QPlatformIntegration::createPlatformTheme(const QString &n */ QPlatformOffscreenSurface *QPlatformIntegration::createPlatformOffscreenSurface(QOffscreenSurface *surface) const { - Q_UNUSED(surface) + Q_UNUSED(surface); return nullptr; } diff --git a/src/gui/kernel/qplatformintegrationplugin.cpp b/src/gui/kernel/qplatformintegrationplugin.cpp index b100eacbb5..e024276797 100644 --- a/src/gui/kernel/qplatformintegrationplugin.cpp +++ b/src/gui/kernel/qplatformintegrationplugin.cpp @@ -52,15 +52,15 @@ QPlatformIntegrationPlugin::~QPlatformIntegrationPlugin() QPlatformIntegration *QPlatformIntegrationPlugin::create(const QString &key, const QStringList ¶mList) { - Q_UNUSED(key) + Q_UNUSED(key); Q_UNUSED(paramList); return nullptr; } QPlatformIntegration *QPlatformIntegrationPlugin::create(const QString &key, const QStringList ¶mList, int &argc, char **argv) { - Q_UNUSED(argc) - Q_UNUSED(argv) + Q_UNUSED(argc); + Q_UNUSED(argv); return create(key, paramList); // Fallback for platform plugins that do not implement the argc/argv version. } diff --git a/src/gui/kernel/qplatformnativeinterface.cpp b/src/gui/kernel/qplatformnativeinterface.cpp index 8c9e73fbc2..15b08e195a 100644 --- a/src/gui/kernel/qplatformnativeinterface.cpp +++ b/src/gui/kernel/qplatformnativeinterface.cpp @@ -137,7 +137,7 @@ QFunctionPointer QPlatformNativeInterface::platformFunction(const QByteArray &fu */ QVariantMap QPlatformNativeInterface::windowProperties(QPlatformWindow *window) const { - Q_UNUSED(window) + Q_UNUSED(window); return QVariantMap(); } diff --git a/src/gui/kernel/qplatformsessionmanager.cpp b/src/gui/kernel/qplatformsessionmanager.cpp index a66fc6d016..bc4ce22c0f 100644 --- a/src/gui/kernel/qplatformsessionmanager.cpp +++ b/src/gui/kernel/qplatformsessionmanager.cpp @@ -118,14 +118,14 @@ QStringList QPlatformSessionManager::discardCommand() const void QPlatformSessionManager::setManagerProperty(const QString &name, const QString &value) { - Q_UNUSED(name) - Q_UNUSED(value) + Q_UNUSED(name); + Q_UNUSED(value); } void QPlatformSessionManager::setManagerProperty(const QString &name, const QStringList &value) { - Q_UNUSED(name) - Q_UNUSED(value) + Q_UNUSED(name); + Q_UNUSED(value); } bool QPlatformSessionManager::isPhase2() const diff --git a/src/gui/kernel/qplatformtheme.cpp b/src/gui/kernel/qplatformtheme.cpp index 6d0c49c327..b086989b15 100644 --- a/src/gui/kernel/qplatformtheme.cpp +++ b/src/gui/kernel/qplatformtheme.cpp @@ -410,7 +410,7 @@ const QPalette *QPlatformTheme::palette(Palette type) const const QFont *QPlatformTheme::font(Font type) const { - Q_UNUSED(type) + Q_UNUSED(type); return nullptr; } @@ -698,7 +698,7 @@ QString QPlatformTheme::standardButtonText(int button) const QKeySequence QPlatformTheme::standardButtonShortcut(int button) const { - Q_UNUSED(button) + Q_UNUSED(button); return QKeySequence(); } #endif // QT_CONFIG(shortcut) diff --git a/src/gui/kernel/qplatformwindow.cpp b/src/gui/kernel/qplatformwindow.cpp index fc736033c2..c6e6afcc91 100644 --- a/src/gui/kernel/qplatformwindow.cpp +++ b/src/gui/kernel/qplatformwindow.cpp @@ -492,7 +492,7 @@ bool QPlatformWindow::windowEvent(QEvent *event) bool QPlatformWindow::startSystemResize(Qt::Edges edges) { - Q_UNUSED(edges) + Q_UNUSED(edges); return false; } @@ -519,7 +519,7 @@ bool QPlatformWindow::startSystemMove() void QPlatformWindow::setFrameStrutEventsEnabled(bool enabled) { - Q_UNUSED(enabled) // Do not warn as widgets enable it by default causing warnings with XCB. + Q_UNUSED(enabled); // Do not warn as widgets enable it by default causing warnings with XCB. } /*! @@ -607,7 +607,7 @@ QSize QPlatformWindow::constrainWindowSize(const QSize &size) void QPlatformWindow::setAlertState(bool enable) { - Q_UNUSED(enable) + Q_UNUSED(enable); } /*! diff --git a/src/gui/kernel/qwindow.cpp b/src/gui/kernel/qwindow.cpp index c06f03f4e7..9e11156c26 100644 --- a/src/gui/kernel/qwindow.cpp +++ b/src/gui/kernel/qwindow.cpp @@ -571,7 +571,7 @@ void QWindowPrivate::clearFocusObject() // implement heightForWidth(). QRectF QWindowPrivate::closestAcceptableGeometry(const QRectF &rect) const { - Q_UNUSED(rect) + Q_UNUSED(rect); return QRectF(); } diff --git a/src/gui/kernel/qwindowsysteminterface.cpp b/src/gui/kernel/qwindowsysteminterface.cpp index fb9f4cafe0..271a627a1d 100644 --- a/src/gui/kernel/qwindowsysteminterface.cpp +++ b/src/gui/kernel/qwindowsysteminterface.cpp @@ -473,16 +473,16 @@ bool QWindowSystemInterface::handleShortcutEvent(QWindow *window, ulong timestam return shortcutMap.tryShortcut(&keyEvent); #else - Q_UNUSED(window) - Q_UNUSED(timestamp) - Q_UNUSED(keyCode) - Q_UNUSED(modifiers) - Q_UNUSED(nativeScanCode) - Q_UNUSED(nativeVirtualKey) - Q_UNUSED(nativeModifiers) - Q_UNUSED(text) - Q_UNUSED(autorepeat) - Q_UNUSED(count) + Q_UNUSED(window); + Q_UNUSED(timestamp); + Q_UNUSED(keyCode); + Q_UNUSED(modifiers); + Q_UNUSED(nativeScanCode); + Q_UNUSED(nativeVirtualKey); + Q_UNUSED(nativeModifiers); + Q_UNUSED(text); + Q_UNUSED(autorepeat); + Q_UNUSED(count); return false; #endif } @@ -528,7 +528,7 @@ bool QWindowSystemInterface::handleExtendedKeyEvent(QWindow *window, ulong times return true; } #else - Q_UNUSED(tryShortcutOverride) + Q_UNUSED(tryShortcutOverride); #endif QWindowSystemInterfacePrivate::KeyEvent * e = @@ -1222,13 +1222,13 @@ Q_GUI_EXPORT bool qt_sendShortcutOverrideEvent(QObject *o, ulong timestamp, int // Then as QShortcutEvent return shortcutMap.tryShortcut(&qevent); #else - Q_UNUSED(o) - Q_UNUSED(timestamp) - Q_UNUSED(k) - Q_UNUSED(mods) - Q_UNUSED(text) - Q_UNUSED(autorep) - Q_UNUSED(count) + Q_UNUSED(o); + Q_UNUSED(timestamp); + Q_UNUSED(k); + Q_UNUSED(mods); + Q_UNUSED(text); + Q_UNUSED(autorep); + Q_UNUSED(count); return false; #endif } diff --git a/src/gui/platform/unix/dbusmenu/qdbusmenuadaptor.cpp b/src/gui/platform/unix/dbusmenu/qdbusmenuadaptor.cpp index eabb4b4122..9cdc1601e6 100644 --- a/src/gui/platform/unix/dbusmenu/qdbusmenuadaptor.cpp +++ b/src/gui/platform/unix/dbusmenu/qdbusmenuadaptor.cpp @@ -103,7 +103,7 @@ bool QDBusMenuAdaptor::AboutToShow(int id) QList<int> QDBusMenuAdaptor::AboutToShowGroup(const QList<int> &ids, QList<int> &idErrors) { qCDebug(qLcMenu) << ids; - Q_UNUSED(idErrors) + Q_UNUSED(idErrors); idErrors.clear(); for (int id : ids) AboutToShow(id); @@ -112,8 +112,8 @@ QList<int> QDBusMenuAdaptor::AboutToShowGroup(const QList<int> &ids, QList<int> void QDBusMenuAdaptor::Event(int id, const QString &eventId, const QDBusVariant &data, uint timestamp) { - Q_UNUSED(data) - Q_UNUSED(timestamp) + Q_UNUSED(data); + Q_UNUSED(timestamp); QDBusPlatformMenuItem *item = QDBusPlatformMenuItem::byId(id); qCDebug(qLcMenu) << id << (item ? item->text() : QLatin1String("")) << eventId; if (item && eventId == QLatin1String("clicked")) diff --git a/src/gui/platform/unix/dbusmenu/qdbusmenutypes.cpp b/src/gui/platform/unix/dbusmenu/qdbusmenutypes.cpp index 6fadea5d28..73ff0aee69 100644 --- a/src/gui/platform/unix/dbusmenu/qdbusmenutypes.cpp +++ b/src/gui/platform/unix/dbusmenu/qdbusmenutypes.cpp @@ -214,7 +214,7 @@ QDBusMenuItem::QDBusMenuItem(const QDBusPlatformMenuItem *item) QDBusMenuItemList QDBusMenuItem::items(const QList<int> &ids, const QStringList &propertyNames) { - Q_UNUSED(propertyNames) + Q_UNUSED(propertyNames); QDBusMenuItemList ret; const QList<const QDBusPlatformMenuItem *> items = QDBusPlatformMenuItem::byIds(ids); ret.reserve(items.size()); diff --git a/src/gui/platform/unix/qeventdispatcher_glib.cpp b/src/gui/platform/unix/qeventdispatcher_glib.cpp index 0ccbf01e80..42b66af686 100644 --- a/src/gui/platform/unix/qeventdispatcher_glib.cpp +++ b/src/gui/platform/unix/qeventdispatcher_glib.cpp @@ -57,7 +57,7 @@ struct GUserEventSource static gboolean userEventSourcePrepare(GSource *source, gint *timeout) { - Q_UNUSED(timeout) + Q_UNUSED(timeout); GUserEventSource *userEventSource = reinterpret_cast<GUserEventSource *>(source); return userEventSource->d->wakeUpCalled; } diff --git a/src/gui/platform/unix/qgenericunixservices.cpp b/src/gui/platform/unix/qgenericunixservices.cpp index 10d5468b9a..cd32cd2a0b 100644 --- a/src/gui/platform/unix/qgenericunixservices.cpp +++ b/src/gui/platform/unix/qgenericunixservices.cpp @@ -220,7 +220,7 @@ static inline QDBusMessage xdgDesktopPortalOpenFile(const QUrl &url) return QDBusConnection::sessionBus().call(message); } #else - Q_UNUSED(url) + Q_UNUSED(url); #endif return QDBusMessage::createError(QDBusError::InternalError, qt_error_string()); @@ -357,14 +357,14 @@ QByteArray QGenericUnixServices::desktopEnvironment() const bool QGenericUnixServices::openUrl(const QUrl &url) { - Q_UNUSED(url) + Q_UNUSED(url); qWarning("openUrl() not supported on this platform"); return false; } bool QGenericUnixServices::openDocument(const QUrl &url) { - Q_UNUSED(url) + Q_UNUSED(url); qWarning("openDocument() not supported on this platform"); return false; } diff --git a/src/gui/rhi/qrhinull.cpp b/src/gui/rhi/qrhinull.cpp index 7511859d31..a541ecee28 100644 --- a/src/gui/rhi/qrhinull.cpp +++ b/src/gui/rhi/qrhinull.cpp @@ -637,7 +637,7 @@ bool QNullTexture::create() bool QNullTexture::createFrom(QRhiTexture::NativeTexture src) { - Q_UNUSED(src) + Q_UNUSED(src); QRHI_RES_RHI(QRhiNull); const bool isCube = m_flags.testFlag(CubeMap); const bool hasMipMaps = m_flags.testFlag(MipMapped); diff --git a/src/gui/text/qfontengine.cpp b/src/gui/text/qfontengine.cpp index b931de1945..d3c8c1a840 100644 --- a/src/gui/text/qfontengine.cpp +++ b/src/gui/text/qfontengine.cpp @@ -103,12 +103,12 @@ bool qt_useHarfbuzzNG() int QFontEngine::getPointInOutline(glyph_t glyph, int flags, quint32 point, QFixed *xpos, QFixed *ypos, quint32 *nPoints) { - Q_UNUSED(glyph) - Q_UNUSED(flags) - Q_UNUSED(point) - Q_UNUSED(xpos) - Q_UNUSED(ypos) - Q_UNUSED(nPoints) + Q_UNUSED(glyph); + Q_UNUSED(flags); + Q_UNUSED(point); + Q_UNUSED(xpos); + Q_UNUSED(ypos); + Q_UNUSED(nPoints); return Err_Not_Covered; } @@ -954,9 +954,9 @@ void QFontEngine::getUnscaledGlyph(glyph_t glyph, QPainterPath *path, glyph_metr */ bool QFontEngine::getSfntTableData(uint tag, uchar *buffer, uint *length) const { - Q_UNUSED(tag) - Q_UNUSED(buffer) - Q_UNUSED(length) + Q_UNUSED(tag); + Q_UNUSED(buffer); + Q_UNUSED(length); return false; } @@ -1538,7 +1538,7 @@ QFontEngineBox::~QFontEngineBox() glyph_t QFontEngineBox::glyphIndex(uint ucs4) const { - Q_UNUSED(ucs4) + Q_UNUSED(ucs4); return 0; } diff --git a/src/gui/text/qtextimagehandler.cpp b/src/gui/text/qtextimagehandler.cpp index cae8304438..9bdc874564 100644 --- a/src/gui/text/qtextimagehandler.cpp +++ b/src/gui/text/qtextimagehandler.cpp @@ -219,7 +219,7 @@ QTextImageHandler::QTextImageHandler(QObject *parent) QSizeF QTextImageHandler::intrinsicSize(QTextDocument *doc, int posInDocument, const QTextFormat &format) { - Q_UNUSED(posInDocument) + Q_UNUSED(posInDocument); const QTextImageFormat imageFormat = format.toImageFormat(); if (QCoreApplication::instance()->thread() != QThread::currentThread()) @@ -236,7 +236,7 @@ QImage QTextImageHandler::image(QTextDocument *doc, const QTextImageFormat &imag void QTextImageHandler::drawObject(QPainter *p, const QRectF &rect, QTextDocument *doc, int posInDocument, const QTextFormat &format) { - Q_UNUSED(posInDocument) + Q_UNUSED(posInDocument); const QTextImageFormat imageFormat = format.toImageFormat(); if (QCoreApplication::instance()->thread() != QThread::currentThread()) { diff --git a/src/gui/text/qtextmarkdownimporter.cpp b/src/gui/text/qtextmarkdownimporter.cpp index 72c445878c..97bdef50d7 100644 --- a/src/gui/text/qtextmarkdownimporter.cpp +++ b/src/gui/text/qtextmarkdownimporter.cpp @@ -111,7 +111,7 @@ static int CbText(MD_TEXTTYPE type, const MD_CHAR *text, MD_SIZE size, void *use static void CbDebugLog(const char *msg, void *userdata) { - Q_UNUSED(userdata) + Q_UNUSED(userdata); qCDebug(lcMD) << msg; } @@ -314,7 +314,7 @@ int QTextMarkdownImporter::cbEnterBlock(int blockType, void *det) int QTextMarkdownImporter::cbLeaveBlock(int blockType, void *detail) { - Q_UNUSED(detail) + Q_UNUSED(detail); switch (blockType) { case MD_BLOCK_P: m_listItem = false; @@ -432,7 +432,7 @@ int QTextMarkdownImporter::cbEnterSpan(int spanType, void *det) int QTextMarkdownImporter::cbLeaveSpan(int spanType, void *detail) { - Q_UNUSED(detail) + Q_UNUSED(detail); QTextCharFormat charFmt; if (!m_spanFormatStack.isEmpty()) { m_spanFormatStack.pop(); diff --git a/src/gui/text/unix/qfontconfigdatabase.cpp b/src/gui/text/unix/qfontconfigdatabase.cpp index 624fd1f9a5..f54af2e59e 100644 --- a/src/gui/text/unix/qfontconfigdatabase.cpp +++ b/src/gui/text/unix/qfontconfigdatabase.cpp @@ -830,7 +830,7 @@ QStringList QFontconfigDatabase::fallbacksForFamily(const QString &family, QFont static FcPattern *queryFont(const FcChar8 *file, const QByteArray &data, int id, FcBlanks *blanks, int *count) { #if FC_VERSION < 20402 - Q_UNUSED(data) + Q_UNUSED(data); return FcFreeTypeQuery(file, id, blanks, count); #else if (data.isEmpty()) diff --git a/src/gui/text/windows/qwindowsfontdatabase.cpp b/src/gui/text/windows/qwindowsfontdatabase.cpp index dab7fda3fd..6d9096786d 100644 --- a/src/gui/text/windows/qwindowsfontdatabase.cpp +++ b/src/gui/text/windows/qwindowsfontdatabase.cpp @@ -725,8 +725,8 @@ QWindowsFontDatabase::QWindowsFontDatabase() // Properties accessed by QWin32PrintEngine (Qt Print Support) static const int hfontMetaTypeId = qRegisterMetaType<HFONT>(); static const int logFontMetaTypeId = qRegisterMetaType<LOGFONT>(); - Q_UNUSED(hfontMetaTypeId) - Q_UNUSED(logFontMetaTypeId) + Q_UNUSED(hfontMetaTypeId); + Q_UNUSED(logFontMetaTypeId); if (lcQpaFonts().isDebugEnabled()) { QSharedPointer<QWindowsFontEngineData> d = data(); diff --git a/src/gui/text/windows/qwindowsfontengine.cpp b/src/gui/text/windows/qwindowsfontengine.cpp index 4eac3afc75..cbf50f65da 100644 --- a/src/gui/text/windows/qwindowsfontengine.cpp +++ b/src/gui/text/windows/qwindowsfontengine.cpp @@ -960,7 +960,7 @@ QWindowsNativeImage *QWindowsFontEngine::drawGDIGlyph(HFONT font, glyph_t glyph, const QTransform &t, QImage::Format mask_format) { - Q_UNUSED(mask_format) + Q_UNUSED(mask_format); glyph_metrics_t gm = boundingBox(glyph); // printf(" -> for glyph %4x\n", glyph); diff --git a/src/gui/util/qastchandler.cpp b/src/gui/util/qastchandler.cpp index 6d163c6701..e91ae3e0f5 100644 --- a/src/gui/util/qastchandler.cpp +++ b/src/gui/util/qastchandler.cpp @@ -61,7 +61,7 @@ struct AstcHeader bool QAstcHandler::canRead(const QByteArray &suffix, const QByteArray &block) { - Q_UNUSED(suffix) + Q_UNUSED(suffix); return block.startsWith("\x13\xAB\xA1\x5C"); } diff --git a/src/gui/util/qktxhandler.cpp b/src/gui/util/qktxhandler.cpp index 7eda4c46fb..f6aa46718d 100644 --- a/src/gui/util/qktxhandler.cpp +++ b/src/gui/util/qktxhandler.cpp @@ -105,7 +105,7 @@ struct KTXMipmapLevel { bool QKtxHandler::canRead(const QByteArray &suffix, const QByteArray &block) { - Q_UNUSED(suffix) + Q_UNUSED(suffix); return (qstrncmp(block.constData(), ktxIdentifier, KTX_IDENTIFIER_LENGTH) == 0); } diff --git a/src/gui/util/qpkmhandler.cpp b/src/gui/util/qpkmhandler.cpp index e0c3b75efe..1c073cf94e 100644 --- a/src/gui/util/qpkmhandler.cpp +++ b/src/gui/util/qpkmhandler.cpp @@ -67,7 +67,7 @@ static PkmType typeMap[5] = { bool QPkmHandler::canRead(const QByteArray &suffix, const QByteArray &block) { - Q_UNUSED(suffix) + Q_UNUSED(suffix); return block.startsWith("PKM "); } diff --git a/src/gui/util/qundostack.cpp b/src/gui/util/qundostack.cpp index f7b5024389..84ef2787e1 100644 --- a/src/gui/util/qundostack.cpp +++ b/src/gui/util/qundostack.cpp @@ -215,7 +215,7 @@ int QUndoCommand::id() const bool QUndoCommand::mergeWith(const QUndoCommand *command) { - Q_UNUSED(command) + Q_UNUSED(command); return false; } diff --git a/src/network/access/qhttpthreaddelegate.cpp b/src/network/access/qhttpthreaddelegate.cpp index 30403b1848..a1d8873fe3 100644 --- a/src/network/access/qhttpthreaddelegate.cpp +++ b/src/network/access/qhttpthreaddelegate.cpp @@ -169,7 +169,7 @@ static QByteArray makeCacheKey(QUrl &url, QNetworkProxy *proxy, const QString &p } } #else - Q_UNUSED(proxy) + Q_UNUSED(proxy); #endif if (!peerVerifyName.isEmpty()) result += QLatin1Char(':') + peerVerifyName; diff --git a/src/network/access/qnetworkreplyimpl.cpp b/src/network/access/qnetworkreplyimpl.cpp index ecffc7131e..400cfff8d3 100644 --- a/src/network/access/qnetworkreplyimpl.cpp +++ b/src/network/access/qnetworkreplyimpl.cpp @@ -564,7 +564,7 @@ void QNetworkReplyImplPrivate::appendDownstreamData(QIODevice *data) void QNetworkReplyImplPrivate::appendDownstreamData(const QByteArray &data) { - Q_UNUSED(data) + Q_UNUSED(data); // TODO implement // TODO call diff --git a/src/network/kernel/qdnslookup_unix.cpp b/src/network/kernel/qdnslookup_unix.cpp index 12b40fc35d..1449c32937 100644 --- a/src/network/kernel/qdnslookup_unix.cpp +++ b/src/network/kernel/qdnslookup_unix.cpp @@ -408,9 +408,9 @@ void QDnsLookupRunnable::query(const int requestType, const QByteArray &requestN #else void QDnsLookupRunnable::query(const int requestType, const QByteArray &requestName, const QHostAddress &nameserver, QDnsLookupReply *reply) { - Q_UNUSED(requestType) - Q_UNUSED(requestName) - Q_UNUSED(nameserver) + Q_UNUSED(requestType); + Q_UNUSED(requestName); + Q_UNUSED(nameserver); reply->error = QDnsLookup::ResolverError; reply->errorString = tr("Resolver library can't be loaded: No runtime library loading support"); return; diff --git a/src/network/kernel/qnetconmonitor_stub.cpp b/src/network/kernel/qnetconmonitor_stub.cpp index a8ff861739..a992339e42 100644 --- a/src/network/kernel/qnetconmonitor_stub.cpp +++ b/src/network/kernel/qnetconmonitor_stub.cpp @@ -61,8 +61,8 @@ QNetworkConnectionMonitor::QNetworkConnectionMonitor() QNetworkConnectionMonitor::QNetworkConnectionMonitor(const QHostAddress &local, const QHostAddress &remote) : QObject(*new QNetworkConnectionMonitorPrivate) { - Q_UNUSED(local) - Q_UNUSED(remote) + Q_UNUSED(local); + Q_UNUSED(remote); } QNetworkConnectionMonitor::~QNetworkConnectionMonitor() @@ -71,8 +71,8 @@ QNetworkConnectionMonitor::~QNetworkConnectionMonitor() bool QNetworkConnectionMonitor::setTargets(const QHostAddress &local, const QHostAddress &remote) { - Q_UNUSED(local) - Q_UNUSED(remote) + Q_UNUSED(local); + Q_UNUSED(remote); return false; } @@ -140,7 +140,7 @@ bool QNetworkStatusMonitor::isEnabled() void QNetworkStatusMonitor::reachabilityChanged(bool online) { - Q_UNUSED(online) + Q_UNUSED(online); } QT_END_NAMESPACE diff --git a/src/network/kernel/qnetworkinterface_unix.cpp b/src/network/kernel/qnetworkinterface_unix.cpp index 977a0dcde9..4b8c58cb40 100644 --- a/src/network/kernel/qnetworkinterface_unix.cpp +++ b/src/network/kernel/qnetworkinterface_unix.cpp @@ -344,7 +344,7 @@ QT_END_INCLUDE_NAMESPACE static QList<QNetworkInterfacePrivate *> createInterfaces(ifaddrs *rawList) { - Q_UNUSED(getMtu) + Q_UNUSED(getMtu); QList<QNetworkInterfacePrivate *> interfaces; QDuplicateTracker<QString> seenInterfaces; QDuplicateTracker<int> seenIndexes; @@ -400,7 +400,7 @@ static void getAddressExtraInfo(QNetworkAddressEntry *entry, struct sockaddr *sa { Q_UNUSED(entry); Q_UNUSED(sa); - Q_UNUSED(ifname) + Q_UNUSED(ifname); } # elif defined(Q_OS_BSD4) @@ -568,7 +568,7 @@ static void getAddressExtraInfo(QNetworkAddressEntry *entry, struct sockaddr *sa static QList<QNetworkInterfacePrivate *> createInterfaces(ifaddrs *rawList) { - Q_UNUSED(getMtu) + Q_UNUSED(getMtu); QList<QNetworkInterfacePrivate *> interfaces; // make sure there's one entry for each interface @@ -600,7 +600,7 @@ static void getAddressExtraInfo(QNetworkAddressEntry *entry, struct sockaddr *sa { Q_UNUSED(entry); Q_UNUSED(sa); - Q_UNUSED(ifname) + Q_UNUSED(ifname); } # endif diff --git a/src/network/socket/qnativesocketengine_win.cpp b/src/network/socket/qnativesocketengine_win.cpp index 2581fc048e..70c96f0096 100644 --- a/src/network/socket/qnativesocketengine_win.cpp +++ b/src/network/socket/qnativesocketengine_win.cpp @@ -157,7 +157,7 @@ static QByteArray qt_prettyDebug(const char *data, int len, int maxLength) } -#define WS_ERROR_DEBUG(x) verboseWSErrorDebug(x); +#define WS_ERROR_DEBUG(x) verboseWSErrorDebug(x) #else diff --git a/src/network/socket/qsocks5socketengine.cpp b/src/network/socket/qsocks5socketengine.cpp index b1b5621b2a..3d40840c1b 100644 --- a/src/network/socket/qsocks5socketengine.cpp +++ b/src/network/socket/qsocks5socketengine.cpp @@ -1611,9 +1611,9 @@ qint64 QSocks5SocketEngine::readDatagram(char *data, qint64 maxlen, QIpPacketHea } return copyLen; #else - Q_UNUSED(data) - Q_UNUSED(maxlen) - Q_UNUSED(header) + Q_UNUSED(data); + Q_UNUSED(maxlen); + Q_UNUSED(header); return -1; #endif // QT_NO_UDPSOCKET } @@ -1658,9 +1658,9 @@ qint64 QSocks5SocketEngine::writeDatagram(const char *data, qint64 len, const QI return len; #else - Q_UNUSED(data) - Q_UNUSED(len) - Q_UNUSED(header) + Q_UNUSED(data); + Q_UNUSED(len); + Q_UNUSED(header); return -1; #endif // QT_NO_UDPSOCKET } diff --git a/src/network/ssl/qdtls_openssl.cpp b/src/network/ssl/qdtls_openssl.cpp index b71ce6b502..cbbce65999 100644 --- a/src/network/ssl/qdtls_openssl.cpp +++ b/src/network/ssl/qdtls_openssl.cpp @@ -594,7 +594,7 @@ extern "C" int q_dgram_create(BIO *bio) extern "C" int q_dgram_destroy(BIO *bio) { - Q_UNUSED(bio) + Q_UNUSED(bio); return 1; } @@ -862,7 +862,7 @@ void QDtlsPrivateOpenSSL::TimeoutHandler::stop() void QDtlsPrivateOpenSSL::TimeoutHandler::timerEvent(QTimerEvent *event) { - Q_UNUSED(event) + Q_UNUSED(event); Q_ASSERT(timerId != -1); killTimer(timerId); diff --git a/src/network/ssl/qssldiffiehellmanparameters_openssl.cpp b/src/network/ssl/qssldiffiehellmanparameters_openssl.cpp index aaf8741130..05b3408b75 100644 --- a/src/network/ssl/qssldiffiehellmanparameters_openssl.cpp +++ b/src/network/ssl/qssldiffiehellmanparameters_openssl.cpp @@ -104,7 +104,7 @@ static int q_DH_check(DH *dh, int *status) // errors from the error queue, but it's not needed anyway // - see the 'isSafeDH' below, how it returns immediately // on 0. - Q_UNUSED(status) + Q_UNUSED(status); return result; } diff --git a/src/network/ssl/qsslsocket.cpp b/src/network/ssl/qsslsocket.cpp index 9af8f2a9dc..ac928f10c8 100644 --- a/src/network/ssl/qsslsocket.cpp +++ b/src/network/ssl/qsslsocket.cpp @@ -2340,7 +2340,7 @@ void QSslSocketPrivate::_q_stateChangedSlot(QAbstractSocket::SocketState state) */ void QSslSocketPrivate::_q_errorSlot(QAbstractSocket::SocketError error) { - Q_UNUSED(error) + Q_UNUSED(error); #ifdef QSSLSOCKET_DEBUG Q_Q(QSslSocket); qCDebug(lcSsl) << "QSslSocket::_q_errorSlot(" << error << ')'; diff --git a/src/network/ssl/qsslsocket_mac.cpp b/src/network/ssl/qsslsocket_mac.cpp index cad18a0e20..d7c3a82db9 100644 --- a/src/network/ssl/qsslsocket_mac.cpp +++ b/src/network/ssl/qsslsocket_mac.cpp @@ -625,8 +625,8 @@ void QSslSocketBackendPrivate::transmit() QList<QSslError> (QSslSocketBackendPrivate::verify)(QList<QSslCertificate> certificateChain, const QString &hostName) { Q_UNIMPLEMENTED(); - Q_UNUSED(certificateChain) - Q_UNUSED(hostName) + Q_UNUSED(certificateChain); + Q_UNUSED(hostName); QList<QSslError> errors; errors << QSslError(QSslError::UnspecifiedError); @@ -640,11 +640,11 @@ bool QSslSocketBackendPrivate::importPkcs12(QIODevice *device, const QByteArray &passPhrase) { Q_UNIMPLEMENTED(); - Q_UNUSED(device) - Q_UNUSED(key) - Q_UNUSED(cert) - Q_UNUSED(caCertificates) - Q_UNUSED(passPhrase) + Q_UNUSED(device); + Q_UNUSED(key); + Q_UNUSED(cert); + Q_UNUSED(caCertificates); + Q_UNUSED(passPhrase); return false; } diff --git a/src/network/ssl/qsslsocket_openssl.cpp b/src/network/ssl/qsslsocket_openssl.cpp index 8a9bc47fb0..02ce1ed183 100644 --- a/src/network/ssl/qsslsocket_openssl.cpp +++ b/src/network/ssl/qsslsocket_openssl.cpp @@ -376,7 +376,7 @@ int q_ssl_sess_set_new_cb(SSL *ssl, SSL_SESSION *session) int qt_OCSP_status_server_callback(SSL *ssl, void *ocspRequest) { - Q_UNUSED(ocspRequest) + Q_UNUSED(ocspRequest); if (!ssl) return SSL_TLSEXT_ERR_ALERT_FATAL; diff --git a/src/platformsupport/eglconvenience/qeglconvenience.cpp b/src/platformsupport/eglconvenience/qeglconvenience.cpp index c689836d75..5d850f6e20 100644 --- a/src/platformsupport/eglconvenience/qeglconvenience.cpp +++ b/src/platformsupport/eglconvenience/qeglconvenience.cpp @@ -468,7 +468,7 @@ void q_printEglConfig(EGLDisplay display, EGLConfig config) QSizeF q_physicalScreenSizeFromFb(int framebufferDevice, const QSize &screenSize) { #ifndef Q_OS_LINUX - Q_UNUSED(framebufferDevice) + Q_UNUSED(framebufferDevice); #endif const int defaultPhysicalDpi = 100; static QSizeF size; @@ -521,7 +521,7 @@ QSizeF q_physicalScreenSizeFromFb(int framebufferDevice, const QSize &screenSize QSize q_screenSizeFromFb(int framebufferDevice) { #ifndef Q_OS_LINUX - Q_UNUSED(framebufferDevice) + Q_UNUSED(framebufferDevice); #endif const int defaultWidth = 800; const int defaultHeight = 600; @@ -565,7 +565,7 @@ QSize q_screenSizeFromFb(int framebufferDevice) int q_screenDepthFromFb(int framebufferDevice) { #ifndef Q_OS_LINUX - Q_UNUSED(framebufferDevice) + Q_UNUSED(framebufferDevice); #endif const int defaultDepth = 32; static int depth = qEnvironmentVariableIntValue("QT_QPA_EGLFS_DEPTH"); @@ -594,7 +594,7 @@ int q_screenDepthFromFb(int framebufferDevice) qreal q_refreshRateFromFb(int framebufferDevice) { #ifndef Q_OS_LINUX - Q_UNUSED(framebufferDevice) + Q_UNUSED(framebufferDevice); #endif static qreal rate = 0; diff --git a/src/platformsupport/input/evdevtablet/qevdevtablethandler.cpp b/src/platformsupport/input/evdevtablet/qevdevtablethandler.cpp index 7ed068c5cc..3be93ff868 100644 --- a/src/platformsupport/input/evdevtablet/qevdevtablethandler.cpp +++ b/src/platformsupport/input/evdevtablet/qevdevtablethandler.cpp @@ -169,7 +169,7 @@ void QEvdevTabletData::report() QEvdevTabletHandler::QEvdevTabletHandler(const QString &device, const QString &spec, QObject *parent) : QObject(parent), m_fd(-1), m_device(device), m_notifier(0), d(0) { - Q_UNUSED(spec) + Q_UNUSED(spec); setObjectName(QLatin1String("Evdev Tablet Handler")); diff --git a/src/platformsupport/kmsconvenience/qkmsdevice.cpp b/src/platformsupport/kmsconvenience/qkmsdevice.cpp index e0982fe832..1ec9c869d7 100644 --- a/src/platformsupport/kmsconvenience/qkmsdevice.cpp +++ b/src/platformsupport/kmsconvenience/qkmsdevice.cpp @@ -1011,7 +1011,7 @@ void QKmsDevice::parseCrtcProperties(uint32_t crtcId, QKmsOutput *output) } enumerateProperties(objProps, [output](drmModePropertyPtr prop, quint64 value) { - Q_UNUSED(value) + Q_UNUSED(value); if (!strcasecmp(prop->name, "mode_id")) output->modeIdPropertyId = prop->prop_id; else if (!strcasecmp(prop->name, "active")) diff --git a/src/plugins/platforms/android/qandroidinputcontext.cpp b/src/plugins/platforms/android/qandroidinputcontext.cpp index 28d4e00762..84745f3f28 100644 --- a/src/plugins/platforms/android/qandroidinputcontext.cpp +++ b/src/plugins/platforms/android/qandroidinputcontext.cpp @@ -897,8 +897,8 @@ void QAndroidInputContext::update(Qt::InputMethodQueries queries) void QAndroidInputContext::invokeAction(QInputMethod::Action action, int cursorPosition) { #warning TODO Handle at least QInputMethod::ContextMenu action - Q_UNUSED(action) - Q_UNUSED(cursorPosition) + Q_UNUSED(action); + Q_UNUSED(cursorPosition); //### click should be passed to the IM, but in the meantime it's better to ignore it than to do something wrong // if (action == QInputMethod::Click) // commit(); diff --git a/src/plugins/platforms/android/qandroidplatformdialoghelpers.cpp b/src/plugins/platforms/android/qandroidplatformdialoghelpers.cpp index 9218afa7f5..0297734bc8 100644 --- a/src/plugins/platforms/android/qandroidplatformdialoghelpers.cpp +++ b/src/plugins/platforms/android/qandroidplatformdialoghelpers.cpp @@ -79,9 +79,9 @@ bool QAndroidPlatformMessageDialogHelper::show(Qt::WindowFlags windowFlags , Qt::WindowModality windowModality , QWindow *parent) { - Q_UNUSED(windowFlags) - Q_UNUSED(windowModality) - Q_UNUSED(parent) + Q_UNUSED(windowFlags); + Q_UNUSED(windowModality); + Q_UNUSED(parent); QSharedPointer<QMessageDialogOptions> opt = options(); if (!opt.data()) return false; diff --git a/src/plugins/platforms/android/qandroidplatformfiledialoghelper.cpp b/src/plugins/platforms/android/qandroidplatformfiledialoghelper.cpp index 6bb3372380..1b48769385 100644 --- a/src/plugins/platforms/android/qandroidplatformfiledialoghelper.cpp +++ b/src/plugins/platforms/android/qandroidplatformfiledialoghelper.cpp @@ -197,9 +197,9 @@ QJNIObjectPrivate QAndroidPlatformFileDialogHelper::getFileDialogIntent(const QS bool QAndroidPlatformFileDialogHelper::show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) { - Q_UNUSED(windowFlags) - Q_UNUSED(windowModality) - Q_UNUSED(parent) + Q_UNUSED(windowFlags); + Q_UNUSED(windowModality); + Q_UNUSED(parent); bool isDirDialog = false; diff --git a/src/plugins/platforms/android/qandroidplatformmenu.cpp b/src/plugins/platforms/android/qandroidplatformmenu.cpp index 7ce603831f..3431997a53 100644 --- a/src/plugins/platforms/android/qandroidplatformmenu.cpp +++ b/src/plugins/platforms/android/qandroidplatformmenu.cpp @@ -104,7 +104,7 @@ void QAndroidPlatformMenu::syncMenuItem(QPlatformMenuItem *menuItem) void QAndroidPlatformMenu::syncSeparatorsCollapsible(bool enable) { - Q_UNUSED(enable) + Q_UNUSED(enable); } void QAndroidPlatformMenu::setText(const QString &text) diff --git a/src/plugins/platforms/android/qandroidplatformmenuitem.cpp b/src/plugins/platforms/android/qandroidplatformmenuitem.cpp index e24c5f974e..8c142603df 100644 --- a/src/plugins/platforms/android/qandroidplatformmenuitem.cpp +++ b/src/plugins/platforms/android/qandroidplatformmenuitem.cpp @@ -118,7 +118,7 @@ bool QAndroidPlatformMenuItem::isSeparator() const void QAndroidPlatformMenuItem::setFont(const QFont &font) { - Q_UNUSED(font) + Q_UNUSED(font); } void QAndroidPlatformMenuItem::setRole(QPlatformMenuItem::MenuRole role) @@ -153,7 +153,7 @@ bool QAndroidPlatformMenuItem::isChecked() const void QAndroidPlatformMenuItem::setShortcut(const QKeySequence &shortcut) { - Q_UNUSED(shortcut) + Q_UNUSED(shortcut); } void QAndroidPlatformMenuItem::setEnabled(bool enabled) @@ -170,7 +170,7 @@ bool QAndroidPlatformMenuItem::isEnabled() const void QAndroidPlatformMenuItem::setIconSize(int size) { - Q_UNUSED(size) + Q_UNUSED(size); } QT_END_NAMESPACE diff --git a/src/plugins/platforms/cocoa/qcocoaaccessibility.mm b/src/plugins/platforms/cocoa/qcocoaaccessibility.mm index 17ee5ba4af..585518628d 100644 --- a/src/plugins/platforms/cocoa/qcocoaaccessibility.mm +++ b/src/plugins/platforms/cocoa/qcocoaaccessibility.mm @@ -94,7 +94,7 @@ void QCocoaAccessibility::notifyAccessibilityUpdate(QAccessibleEvent *event) void QCocoaAccessibility::setRootObject(QObject *o) { - Q_UNUSED(o) + Q_UNUSED(o); } void QCocoaAccessibility::initialize() diff --git a/src/plugins/platforms/cocoa/qcocoamenuitem.mm b/src/plugins/platforms/cocoa/qcocoamenuitem.mm index e5dc1c54e6..ac245ba5b5 100644 --- a/src/plugins/platforms/cocoa/qcocoamenuitem.mm +++ b/src/plugins/platforms/cocoa/qcocoamenuitem.mm @@ -205,7 +205,7 @@ void QCocoaMenuItem::setIsSeparator(bool isSeparator) void QCocoaMenuItem::setFont(const QFont &font) { - Q_UNUSED(font) + Q_UNUSED(font); } void QCocoaMenuItem::setRole(MenuRole role) diff --git a/src/plugins/platforms/cocoa/qnsview_complextext.mm b/src/plugins/platforms/cocoa/qnsview_complextext.mm index 5926840cf3..48cea12a14 100644 --- a/src/plugins/platforms/cocoa/qnsview_complextext.mm +++ b/src/plugins/platforms/cocoa/qnsview_complextext.mm @@ -95,7 +95,7 @@ - (void)insertText:(id)aString replacementRange:(NSRange)replacementRange { - Q_UNUSED(replacementRange) + Q_UNUSED(replacementRange); if (m_sendKeyEvent && m_composingText.isEmpty() && [aString isEqualToString:m_inputSource]) { // don't send input method events for simple text input (let handleKeyEvent send key events instead) @@ -129,7 +129,7 @@ - (void)setMarkedText:(id)aString selectedRange:(NSRange)selectedRange replacementRange:(NSRange)replacementRange { - Q_UNUSED(replacementRange) + Q_UNUSED(replacementRange); QString preeditString; QList<QInputMethodEvent::Attribute> attrs; @@ -199,7 +199,7 @@ - (NSAttributedString *)attributedSubstringForProposedRange:(NSRange)aRange actualRange:(NSRangePointer)actualRange { - Q_UNUSED(actualRange) + Q_UNUSED(actualRange); QObject *fo = m_platformWindow->window()->focusObject(); if (!fo) return nil; @@ -255,8 +255,8 @@ - (NSRect)firstRectForCharacterRange:(NSRange)aRange actualRange:(NSRangePointer)actualRange { - Q_UNUSED(aRange) - Q_UNUSED(actualRange) + Q_UNUSED(aRange); + Q_UNUSED(actualRange); QObject *fo = m_platformWindow->window()->focusObject(); if (!fo) @@ -305,7 +305,7 @@ - (void)textInputContextKeyboardSelectionDidChangeNotification:(NSNotification *)textInputContextKeyboardSelectionDidChangeNotification { - Q_UNUSED(textInputContextKeyboardSelectionDidChangeNotification) + Q_UNUSED(textInputContextKeyboardSelectionDidChangeNotification); if (([NSApp keyWindow] == self.window) && self.window.firstResponder == self) { if (QCocoaInputContext *ic = qobject_cast<QCocoaInputContext *>(QCocoaIntegration::instance()->inputContext())) ic->updateLocale(); diff --git a/src/plugins/platforms/cocoa/qnsview_mouse.mm b/src/plugins/platforms/cocoa/qnsview_mouse.mm index b55ffd4bcc..75bba9f425 100644 --- a/src/plugins/platforms/cocoa/qnsview_mouse.mm +++ b/src/plugins/platforms/cocoa/qnsview_mouse.mm @@ -217,7 +217,7 @@ - (BOOL)acceptsFirstMouse:(NSEvent *)theEvent { - Q_UNUSED(theEvent) + Q_UNUSED(theEvent); if (!m_platformWindow) return NO; if ([self isTransparentForUserInput]) @@ -548,7 +548,7 @@ - (void)mouseEnteredImpl:(NSEvent *)theEvent { - Q_UNUSED(theEvent) + Q_UNUSED(theEvent); if (!m_platformWindow) return; diff --git a/src/plugins/platforms/eglfs/deviceintegration/eglfs_brcm/qeglfsbrcmintegration.cpp b/src/plugins/platforms/eglfs/deviceintegration/eglfs_brcm/qeglfsbrcmintegration.cpp index 4e811a1dfe..c1a34ad68c 100644 --- a/src/plugins/platforms/eglfs/deviceintegration/eglfs_brcm/qeglfsbrcmintegration.cpp +++ b/src/plugins/platforms/eglfs/deviceintegration/eglfs_brcm/qeglfsbrcmintegration.cpp @@ -127,7 +127,7 @@ QSize QEglFSBrcmIntegration::screenSize() const EGLNativeWindowType QEglFSBrcmIntegration::createNativeWindow(QPlatformWindow *window, const QSize &size, const QSurfaceFormat &format) { - Q_UNUSED(window) + Q_UNUSED(window); return createDispmanxLayer(QPoint(0, 0), size, 1, format.hasAlpha() ? DISPMANX_FLAGS_ALPHA_FROM_SOURCE : DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS); } diff --git a/src/plugins/platforms/eglfs/deviceintegration/eglfs_viv/qeglfsvivintegration.cpp b/src/plugins/platforms/eglfs/deviceintegration/eglfs_viv/qeglfsvivintegration.cpp index 5e1d28a353..2daf277d71 100644 --- a/src/plugins/platforms/eglfs/deviceintegration/eglfs_viv/qeglfsvivintegration.cpp +++ b/src/plugins/platforms/eglfs/deviceintegration/eglfs_viv/qeglfsvivintegration.cpp @@ -90,8 +90,8 @@ EGLNativeDisplayType QEglFSVivIntegration::platformDisplay() const EGLNativeWindowType QEglFSVivIntegration::createNativeWindow(QPlatformWindow *window, const QSize &size, const QSurfaceFormat &format) { - Q_UNUSED(window) - Q_UNUSED(format) + Q_UNUSED(window); + Q_UNUSED(format); EGLNativeWindowType eglWindow = static_cast<EGLNativeWindowType>(fbCreateWindow(mNativeDisplay, 0, 0, size.width(), size.height())); return eglWindow; diff --git a/src/plugins/platforms/eglfs/deviceintegration/eglfs_viv_wl/qeglfsvivwlintegration.cpp b/src/plugins/platforms/eglfs/deviceintegration/eglfs_viv_wl/qeglfsvivwlintegration.cpp index 296e301f07..207e75997c 100644 --- a/src/plugins/platforms/eglfs/deviceintegration/eglfs_viv_wl/qeglfsvivwlintegration.cpp +++ b/src/plugins/platforms/eglfs/deviceintegration/eglfs_viv_wl/qeglfsvivwlintegration.cpp @@ -83,8 +83,8 @@ EGLNativeDisplayType QEglFSVivWaylandIntegration::platformDisplay() const EGLNativeWindowType QEglFSVivWaylandIntegration::createNativeWindow(QPlatformWindow *window, const QSize &size, const QSurfaceFormat &format) { - Q_UNUSED(window) - Q_UNUSED(format) + Q_UNUSED(window); + Q_UNUSED(format); EGLNativeWindowType eglWindow = static_cast<EGLNativeWindowType>(fbCreateWindow(mNativeDisplay, 0, 0, size.width(), size.height())); return eglWindow; diff --git a/src/plugins/platforms/ios/optional/nsphotolibrarysupport/qiosimagepickercontroller.mm b/src/plugins/platforms/ios/optional/nsphotolibrarysupport/qiosimagepickercontroller.mm index 79d4ecf83f..6607ee4fcf 100644 --- a/src/plugins/platforms/ios/optional/nsphotolibrarysupport/qiosimagepickercontroller.mm +++ b/src/plugins/platforms/ios/optional/nsphotolibrarysupport/qiosimagepickercontroller.mm @@ -67,7 +67,7 @@ - (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker { - Q_UNUSED(picker) + Q_UNUSED(picker); emit m_fileDialog->reject(); } diff --git a/src/plugins/platforms/ios/qiosdocumentpickercontroller.mm b/src/plugins/platforms/ios/qiosdocumentpickercontroller.mm index c1b641e839..476480c488 100644 --- a/src/plugins/platforms/ios/qiosdocumentpickercontroller.mm +++ b/src/plugins/platforms/ios/qiosdocumentpickercontroller.mm @@ -96,7 +96,7 @@ - (void)documentPickerWasCancelled:(UIDocumentPickerViewController *)controller { - Q_UNUSED(controller) + Q_UNUSED(controller); emit m_fileDialog->reject(); } diff --git a/src/plugins/platforms/ios/qiostextinputoverlay.mm b/src/plugins/platforms/ios/qiostextinputoverlay.mm index 92c11cd5e9..9acb707e6f 100644 --- a/src/plugins/platforms/ios/qiostextinputoverlay.mm +++ b/src/plugins/platforms/ios/qiostextinputoverlay.mm @@ -588,7 +588,7 @@ static void executeBlockWithoutAnimation(Block block) - (BOOL)acceptTouchesBegan:(QPointF)touchPoint { - Q_UNUSED(touchPoint) + Q_UNUSED(touchPoint); Q_UNREACHABLE(); return NO; } @@ -601,7 +601,7 @@ static void executeBlockWithoutAnimation(Block block) - (void)updateFocalPoint:(QPointF)touchPoint { - Q_UNUSED(touchPoint) + Q_UNUSED(touchPoint); Q_UNREACHABLE(); } diff --git a/src/plugins/platforms/ios/quiview.mm b/src/plugins/platforms/ios/quiview.mm index 0043016fb0..d1a0cbf858 100644 --- a/src/plugins/platforms/ios/quiview.mm +++ b/src/plugins/platforms/ios/quiview.mm @@ -627,15 +627,15 @@ Q_LOGGING_CATEGORY(lcQpaTablet, "qt.qpa.input.tablet") // Check first if QIOSMenu should handle the action before continuing up the responder chain return [QIOSMenu::menuActionTarget() targetForAction:action withSender:sender] != 0; #else - Q_UNUSED(action) - Q_UNUSED(sender) + Q_UNUSED(action); + Q_UNUSED(sender); return false; #endif } - (id)forwardingTargetForSelector:(SEL)selector { - Q_UNUSED(selector) + Q_UNUSED(selector); #ifndef Q_OS_TVOS return QIOSMenu::menuActionTarget(); #else diff --git a/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp b/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp index 498beec229..cea486db21 100644 --- a/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp +++ b/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp @@ -187,7 +187,7 @@ QFunctionPointer QLinuxFbIntegration::platformFunction(const QByteArray &functio else if (function == QLinuxFbFunctions::switchLangTypeIdentifier()) return QFunctionPointer(switchLangStatic); #else - Q_UNUSED(function) + Q_UNUSED(function); #endif return 0; diff --git a/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp b/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp index 53ec3e80c2..bcf996f708 100644 --- a/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp +++ b/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp @@ -104,7 +104,7 @@ QPlatformNativeInterface *QOffscreenX11Integration::nativeInterface() const void *QOffscreenX11Integration::nativeResourceForScreen(const QByteArray &resource, QScreen *screen) { - Q_UNUSED(screen) + Q_UNUSED(screen); if (resource.toLower() == QByteArrayLiteral("display") ) { if (!m_connection) m_connection.reset(new QOffscreenX11Connection); diff --git a/src/plugins/platforms/qnx/qqnxnativeinterface.cpp b/src/plugins/platforms/qnx/qqnxnativeinterface.cpp index 25f7b09a60..fd341f40d1 100644 --- a/src/plugins/platforms/qnx/qqnxnativeinterface.cpp +++ b/src/plugins/platforms/qnx/qqnxnativeinterface.cpp @@ -134,7 +134,7 @@ QPlatformNativeInterface::NativeResourceForIntegrationFunction QQnxNativeInterfa if (resource == "blackberryIMFCheckSpelling") return reinterpret_cast<NativeResourceForIntegrationFunction>(QQnxInputContext::checkSpelling); #else - Q_UNUSED(resource) + Q_UNUSED(resource); #endif return 0; } diff --git a/src/plugins/platforms/qnx/qqnxrasterbackingstore.cpp b/src/plugins/platforms/qnx/qqnxrasterbackingstore.cpp index dd7f907ee0..e70092b97e 100644 --- a/src/plugins/platforms/qnx/qqnxrasterbackingstore.cpp +++ b/src/plugins/platforms/qnx/qqnxrasterbackingstore.cpp @@ -79,7 +79,7 @@ QPaintDevice *QQnxRasterBackingStore::paintDevice() void QQnxRasterBackingStore::flush(QWindow *window, const QRegion ®ion, const QPoint &offset) { - Q_UNUSED(offset) + Q_UNUSED(offset); qRasterBackingStoreDebug() << "w =" << this->window(); diff --git a/src/plugins/platforms/vnc/qvncscreen.cpp b/src/plugins/platforms/vnc/qvncscreen.cpp index 4c55e0fd01..7ef23601ba 100644 --- a/src/plugins/platforms/vnc/qvncscreen.cpp +++ b/src/plugins/platforms/vnc/qvncscreen.cpp @@ -132,7 +132,7 @@ void QVncScreen::enableClientCursor(QVncClient *client) clientCursor = new QVncClientCursor(); clientCursor->addClient(client); #else - Q_UNUSED(client) + Q_UNUSED(client); #endif } @@ -150,7 +150,7 @@ void QVncScreen::disableClientCursor(QVncClient *client) mCursor = new QFbCursor(this); #else - Q_UNUSED(client) + Q_UNUSED(client); #endif } diff --git a/src/plugins/platforms/wasm/qwasmbackingstore.cpp b/src/plugins/platforms/wasm/qwasmbackingstore.cpp index cef15543d4..3d667ccf97 100644 --- a/src/plugins/platforms/wasm/qwasmbackingstore.cpp +++ b/src/plugins/platforms/wasm/qwasmbackingstore.cpp @@ -164,7 +164,7 @@ void QWasmBackingStore::beginPaint(const QRegion ®ion) void QWasmBackingStore::resize(const QSize &size, const QRegion &staticContents) { - Q_UNUSED(staticContents) + Q_UNUSED(staticContents); m_image = QImage(size * window()->devicePixelRatio(), QImage::Format_RGB32); m_image.setDevicePixelRatio(window()->devicePixelRatio()); diff --git a/src/plugins/platforms/wasm/qwasmeventtranslator.cpp b/src/plugins/platforms/wasm/qwasmeventtranslator.cpp index 38dbb2e9ff..41e4b557c0 100644 --- a/src/plugins/platforms/wasm/qwasmeventtranslator.cpp +++ b/src/plugins/platforms/wasm/qwasmeventtranslator.cpp @@ -648,7 +648,7 @@ int QWasmEventTranslator::focus_cb(int /*eventType*/, const EmscriptenFocusEvent int QWasmEventTranslator::wheel_cb(int eventType, const EmscriptenWheelEvent *wheelEvent, void *userData) { - Q_UNUSED(eventType) + Q_UNUSED(eventType); QWasmEventTranslator *eventTranslator = static_cast<QWasmEventTranslator *>(userData); EmscriptenMouseEvent mouseEvent = wheelEvent->mouse; diff --git a/src/plugins/platforms/windows/qwindowscontext.cpp b/src/plugins/platforms/windows/qwindowscontext.cpp index 161777d70f..6744f917a4 100644 --- a/src/plugins/platforms/windows/qwindowscontext.cpp +++ b/src/plugins/platforms/windows/qwindowscontext.cpp @@ -465,7 +465,7 @@ void QWindowsContext::setTabletAbsoluteRange(int a) if (!d->m_tabletSupport.isNull()) d->m_tabletSupport->setAbsoluteRange(a); #else - Q_UNUSED(a) + Q_UNUSED(a); #endif } diff --git a/src/plugins/platforms/windows/qwindowscursor.cpp b/src/plugins/platforms/windows/qwindowscursor.cpp index 338bb9ff8f..70827cc57d 100644 --- a/src/plugins/platforms/windows/qwindowscursor.cpp +++ b/src/plugins/platforms/windows/qwindowscursor.cpp @@ -588,7 +588,7 @@ QWindowsCursor::QWindowsCursor(const QPlatformScreen *screen) : m_screen(screen) { static const bool dummy = initResources(); - Q_UNUSED(dummy) + Q_UNUSED(dummy); } inline CursorHandlePtr QWindowsCursor::cursorHandle(const QCursor &cursor) diff --git a/src/plugins/platforms/windows/qwindowsmousehandler.cpp b/src/plugins/platforms/windows/qwindowsmousehandler.cpp index 4efeaa9d34..13dd324a09 100644 --- a/src/plugins/platforms/windows/qwindowsmousehandler.cpp +++ b/src/plugins/platforms/windows/qwindowsmousehandler.cpp @@ -662,9 +662,9 @@ bool QWindowsMouseHandler::translateGestureEvent(QWindow *window, HWND hwnd, QtWindows::WindowsEventType, MSG msg, LRESULT *) { - Q_UNUSED(window) - Q_UNUSED(hwnd) - Q_UNUSED(msg) + Q_UNUSED(window); + Q_UNUSED(hwnd); + Q_UNUSED(msg); return false; } diff --git a/src/plugins/platforms/windows/qwindowsnativeinterface.cpp b/src/plugins/platforms/windows/qwindowsnativeinterface.cpp index efd7d04b3e..fdc1268794 100644 --- a/src/plugins/platforms/windows/qwindowsnativeinterface.cpp +++ b/src/plugins/platforms/windows/qwindowsnativeinterface.cpp @@ -182,7 +182,7 @@ QVariantMap QWindowsNativeInterface::windowProperties(QPlatformWindow *window) c void *QWindowsNativeInterface::nativeResourceForIntegration(const QByteArray &resource) { #ifdef QT_NO_OPENGL - Q_UNUSED(resource) + Q_UNUSED(resource); #else if (resourceType(resource) == GlHandleType) { if (const QWindowsStaticOpenGLContext *sc = QWindowsIntegration::staticOpenGLContext()) diff --git a/src/plugins/platforms/windows/qwindowsopengltester.cpp b/src/plugins/platforms/windows/qwindowsopengltester.cpp index bf86727838..00ac7fa2b7 100644 --- a/src/plugins/platforms/windows/qwindowsopengltester.cpp +++ b/src/plugins/platforms/windows/qwindowsopengltester.cpp @@ -281,8 +281,8 @@ QWindowsOpenGLTester::Renderers QWindowsOpenGLTester::detectSupportedRenderers(c Renderer requested) { #if defined(QT_NO_OPENGL) - Q_UNUSED(gpu) - Q_UNUSED(requested) + Q_UNUSED(gpu); + Q_UNUSED(requested); return 0; #else QOpenGLConfig::Gpu qgpu = QOpenGLConfig::Gpu::fromDevice(gpu.vendorId, gpu.deviceId, gpu.driverVersion, gpu.description); diff --git a/src/plugins/platforms/windows/qwindowstheme.cpp b/src/plugins/platforms/windows/qwindowstheme.cpp index c55a9c668c..130fac4736 100644 --- a/src/plugins/platforms/windows/qwindowstheme.cpp +++ b/src/plugins/platforms/windows/qwindowstheme.cpp @@ -876,8 +876,8 @@ static QPixmap pixmapFromShellImageList(int iImageList, const SHFILEINFO &info) } imageList->Release(); #else - Q_UNUSED(iImageList) - Q_UNUSED(info) + Q_UNUSED(iImageList); + Q_UNUSED(info); #endif // USE_IIMAGELIST return result; } diff --git a/src/plugins/platforms/windows/qwindowswindow.cpp b/src/plugins/platforms/windows/qwindowswindow.cpp index d93f2a2803..ca278a4773 100644 --- a/src/plugins/platforms/windows/qwindowswindow.cpp +++ b/src/plugins/platforms/windows/qwindowswindow.cpp @@ -3004,8 +3004,8 @@ void *QWindowsWindow::surface(void *nativeConfig, int *err) return &m_vkSurface; } #elif defined(QT_NO_OPENGL) - Q_UNUSED(err) - Q_UNUSED(nativeConfig) + Q_UNUSED(err); + Q_UNUSED(nativeConfig); return 0; #endif #ifndef QT_NO_OPENGL diff --git a/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp b/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp index 3cb2a5b5ef..0545bdd5f1 100644 --- a/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp +++ b/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp @@ -86,7 +86,7 @@ struct XcbEventSource static gboolean xcbSourcePrepare(GSource *source, gint *timeout) { - Q_UNUSED(timeout) + Q_UNUSED(timeout); auto xcbEventSource = reinterpret_cast<XcbEventSource *>(source); return xcbEventSource->dispatcher_p->wakeUpCalled; } diff --git a/src/plugins/printsupport/cups/qcupsprintersupport.cpp b/src/plugins/printsupport/cups/qcupsprintersupport.cpp index 42a7a821f2..8f7d0f1e1e 100644 --- a/src/plugins/printsupport/cups/qcupsprintersupport.cpp +++ b/src/plugins/printsupport/cups/qcupsprintersupport.cpp @@ -148,7 +148,7 @@ QPrintEngine *QCupsPrinterSupport::createNativePrintEngine(QPrinter::PrinterMode QPaintEngine *QCupsPrinterSupport::createPaintEngine(QPrintEngine *engine, QPrinter::PrinterMode printerMode) { - Q_UNUSED(printerMode) + Q_UNUSED(printerMode); return static_cast<QCupsPrintEngine *>(engine); } diff --git a/src/plugins/printsupport/cups/qppdprintdevice.cpp b/src/plugins/printsupport/cups/qppdprintdevice.cpp index b63a349269..7503e70a4c 100644 --- a/src/plugins/printsupport/cups/qppdprintdevice.cpp +++ b/src/plugins/printsupport/cups/qppdprintdevice.cpp @@ -189,8 +189,8 @@ QMarginsF QPpdPrintDevice::printableMargins(const QPageSize &pageSize, QPageLayout::Orientation orientation, int resolution) const { - Q_UNUSED(orientation) - Q_UNUSED(resolution) + Q_UNUSED(orientation); + Q_UNUSED(resolution); if (!m_havePageSizes) loadPageSizes(); // TODO Orientation? diff --git a/src/plugins/printsupport/windows/qwindowsprintersupport.cpp b/src/plugins/printsupport/windows/qwindowsprintersupport.cpp index a7eabc2622..a52ad55576 100644 --- a/src/plugins/printsupport/windows/qwindowsprintersupport.cpp +++ b/src/plugins/printsupport/windows/qwindowsprintersupport.cpp @@ -62,7 +62,7 @@ QPrintEngine *QWindowsPrinterSupport::createNativePrintEngine(QPrinter::PrinterM QPaintEngine *QWindowsPrinterSupport::createPaintEngine(QPrintEngine *engine, QPrinter::PrinterMode printerMode) { - Q_UNUSED(printerMode) + Q_UNUSED(printerMode); return static_cast<QWin32PrintEngine *>(engine); } diff --git a/src/printsupport/dialogs/qprintdialog_unix.cpp b/src/printsupport/dialogs/qprintdialog_unix.cpp index bc8591b8fb..6dcb613ff5 100644 --- a/src/printsupport/dialogs/qprintdialog_unix.cpp +++ b/src/printsupport/dialogs/qprintdialog_unix.cpp @@ -313,7 +313,7 @@ QPrintPropertiesDialog::QPrintPropertiesDialog(QPrinter *printer, QPrintDevice * }); #else - Q_UNUSED(currentPrintDevice) + Q_UNUSED(currentPrintDevice); widget.tabs->setTabEnabled(advancedTabIndex, false); #endif } diff --git a/src/printsupport/kernel/qplatformprintdevice.cpp b/src/printsupport/kernel/qplatformprintdevice.cpp index 8a39047bbf..748ac50d86 100644 --- a/src/printsupport/kernel/qplatformprintdevice.cpp +++ b/src/printsupport/kernel/qplatformprintdevice.cpp @@ -259,9 +259,9 @@ QMarginsF QPlatformPrintDevice::printableMargins(const QPageSize &pageSize, QPageLayout::Orientation orientation, int resolution) const { - Q_UNUSED(pageSize) - Q_UNUSED(orientation) - Q_UNUSED(resolution) + Q_UNUSED(pageSize); + Q_UNUSED(orientation); + Q_UNUSED(resolution); return QMarginsF(0, 0, 0, 0); } @@ -361,23 +361,23 @@ void QPlatformPrintDevice::loadMimeTypes() const QVariant QPlatformPrintDevice::property(QPrintDevice::PrintDevicePropertyKey key) const { - Q_UNUSED(key) + Q_UNUSED(key); return QVariant(); } bool QPlatformPrintDevice::setProperty(QPrintDevice::PrintDevicePropertyKey key, const QVariant &value) { - Q_UNUSED(key) - Q_UNUSED(value) + Q_UNUSED(key); + Q_UNUSED(value); return false; } bool QPlatformPrintDevice::isFeatureAvailable(QPrintDevice::PrintDevicePropertyKey key, const QVariant ¶ms) const { - Q_UNUSED(key) - Q_UNUSED(params) + Q_UNUSED(key); + Q_UNUSED(params); return false; } diff --git a/src/printsupport/kernel/qplatformprintersupport.cpp b/src/printsupport/kernel/qplatformprintersupport.cpp index a25dc6d45c..31fe5b57af 100644 --- a/src/printsupport/kernel/qplatformprintersupport.cpp +++ b/src/printsupport/kernel/qplatformprintersupport.cpp @@ -85,7 +85,7 @@ QPrintDevice QPlatformPrinterSupport::createPrintDevice(QPlatformPrintDevice *de QPrintDevice QPlatformPrinterSupport::createPrintDevice(const QString &id) { - Q_UNUSED(id) + Q_UNUSED(id); return QPrintDevice(); } @@ -101,9 +101,9 @@ QString QPlatformPrinterSupport::defaultPrintDeviceId() const QPageSize QPlatformPrinterSupport::createPageSize(const QString &id, QSize size, const QString &localizedName) { - Q_UNUSED(id) - Q_UNUSED(size) - Q_UNUSED(localizedName) + Q_UNUSED(id); + Q_UNUSED(size); + Q_UNUSED(localizedName); return QPageSize(); } diff --git a/src/printsupport/platform/macos/qcocoaprintdevice.mm b/src/printsupport/platform/macos/qcocoaprintdevice.mm index fe7e1ee912..704418d194 100644 --- a/src/printsupport/platform/macos/qcocoaprintdevice.mm +++ b/src/printsupport/platform/macos/qcocoaprintdevice.mm @@ -215,8 +215,8 @@ QMarginsF QCocoaPrintDevice::printableMargins(const QPageSize &pageSize, QPageLayout::Orientation orientation, int resolution) const { - Q_UNUSED(orientation) - Q_UNUSED(resolution) + Q_UNUSED(orientation); + Q_UNUSED(resolution); if (!m_havePageSizes) loadPageSizes(); if (m_printableMargins.contains(pageSize.key())) diff --git a/src/widgets/accessible/qaccessiblewidget.cpp b/src/widgets/accessible/qaccessiblewidget.cpp index 780d54c4b7..ae545a5ce2 100644 --- a/src/widgets/accessible/qaccessiblewidget.cpp +++ b/src/widgets/accessible/qaccessiblewidget.cpp @@ -158,7 +158,7 @@ QString qt_accHotKey(const QString &text) if (ampIndex != -1) return QKeySequence(Qt::ALT).toString(QKeySequence::NativeText) + text.at(ampIndex + 1); #else - Q_UNUSED(text) + Q_UNUSED(text); #endif return QString(); diff --git a/src/widgets/accessible/simplewidgets.cpp b/src/widgets/accessible/simplewidgets.cpp index 65c7375430..3ecd938039 100644 --- a/src/widgets/accessible/simplewidgets.cpp +++ b/src/widgets/accessible/simplewidgets.cpp @@ -365,7 +365,7 @@ QAccessibleInterface *QAccessibleToolButton::child(int index) const return QAccessible::queryAccessibleInterface(toolButton()->menu()); } #else - Q_UNUSED(index) + Q_UNUSED(index); #endif return nullptr; } diff --git a/src/widgets/dialogs/qfiledialog.cpp b/src/widgets/dialogs/qfiledialog.cpp index f89d60ca74..587db6343f 100644 --- a/src/widgets/dialogs/qfiledialog.cpp +++ b/src/widgets/dialogs/qfiledialog.cpp @@ -1029,7 +1029,7 @@ QUrl QFileDialog::directoryUrl() const // FIXME Qt 5.4: Use upcoming QVolumeInfo class to determine this information? static inline bool isCaseSensitiveFileSystem(const QString &path) { - Q_UNUSED(path) + Q_UNUSED(path); #if defined(Q_OS_WIN) // Return case insensitive unconditionally, even if someone has a case sensitive // file system mounted, wrongly capitalized drive letters will cause mismatches. @@ -1185,7 +1185,7 @@ QStringList QFileDialogPrivate::typedFiles() const files << qt_tildeExpansion(editText); #else files << editText; - Q_UNUSED(q) + Q_UNUSED(q); #endif } else { // " is used to separate files like so: "file1" "file2" "file3" ... diff --git a/src/widgets/dialogs/qfilesystemmodel.cpp b/src/widgets/dialogs/qfilesystemmodel.cpp index 8aefac7343..96d3f0e011 100644 --- a/src/widgets/dialogs/qfilesystemmodel.cpp +++ b/src/widgets/dialogs/qfilesystemmodel.cpp @@ -863,7 +863,7 @@ static void displayRenameFailedMessage(const QString &newName) QMessageBox::information(nullptr, QFileSystemModel::tr("Invalid filename"), message, QMessageBox::Ok); #else - Q_UNUSED(newName) + Q_UNUSED(newName); #endif // QT_CONFIG(messagebox) } @@ -1633,7 +1633,7 @@ void QFileSystemModel::setResolveSymlinks(bool enable) Q_D(QFileSystemModel); d->fileInfoGatherer.setResolveSymlinks(enable); #else - Q_UNUSED(enable) + Q_UNUSED(enable); #endif } @@ -1721,7 +1721,7 @@ void QFileSystemModel::setNameFilters(const QStringList &filters) d->forceSort = true; d->delayedSort(); #else - Q_UNUSED(filters) + Q_UNUSED(filters); #endif } @@ -1824,7 +1824,7 @@ QFileSystemModelPrivate::QFileSystemNode* QFileSystemModelPrivate::addNode(QFile #if QT_CONFIG(filesystemwatcher) node->populate(info); #else - Q_UNUSED(info) + Q_UNUSED(info); #endif #if defined(Q_OS_WIN) //The parentNode is "" so we are listing the drives @@ -2016,8 +2016,8 @@ void QFileSystemModelPrivate::_q_fileSystemChanged(const QString &path, delayedSort(); } #else - Q_UNUSED(path) - Q_UNUSED(updates) + Q_UNUSED(path); + Q_UNUSED(updates); #endif // filesystemwatcher } @@ -2165,7 +2165,7 @@ bool QFileSystemModelPrivate::passNameFilters(const QFileSystemNode *node) const return false; } #else - Q_UNUSED(node) + Q_UNUSED(node); #endif return true; } diff --git a/src/widgets/graphicsview/qgraphicsview.cpp b/src/widgets/graphicsview/qgraphicsview.cpp index d3d49f4395..4119fd4851 100644 --- a/src/widgets/graphicsview/qgraphicsview.cpp +++ b/src/widgets/graphicsview/qgraphicsview.cpp @@ -903,8 +903,8 @@ void QGraphicsViewPrivate::populateSceneDragDropEvent(QGraphicsSceneDragDropEven dest->setWidget(viewport); dest->setSource(qobject_cast<QWidget *>(source->source())); #else - Q_UNUSED(dest) - Q_UNUSED(source) + Q_UNUSED(dest); + Q_UNUSED(source); #endif } diff --git a/src/widgets/itemviews/qabstractitemdelegate.cpp b/src/widgets/itemviews/qabstractitemdelegate.cpp index a39da69ffd..3b2d1a80ff 100644 --- a/src/widgets/itemviews/qabstractitemdelegate.cpp +++ b/src/widgets/itemviews/qabstractitemdelegate.cpp @@ -551,7 +551,7 @@ bool QAbstractItemDelegatePrivate::tryFixup(QWidget *editor) } } #else - Q_UNUSED(editor) + Q_UNUSED(editor); #endif // QT_CONFIG(lineedit) return true; diff --git a/src/widgets/itemviews/qabstractitemview.cpp b/src/widgets/itemviews/qabstractitemview.cpp index dcc1e615a7..bc35679492 100644 --- a/src/widgets/itemviews/qabstractitemview.cpp +++ b/src/widgets/itemviews/qabstractitemview.cpp @@ -3397,9 +3397,9 @@ void QAbstractItemView::rowsAboutToBeRemoved(const QModelIndex &parent, int star */ void QAbstractItemViewPrivate::_q_rowsRemoved(const QModelIndex &index, int start, int end) { - Q_UNUSED(index) - Q_UNUSED(start) - Q_UNUSED(end) + Q_UNUSED(index); + Q_UNUSED(start); + Q_UNUSED(end); Q_Q(QAbstractItemView); if (q->isVisible()) @@ -3478,9 +3478,9 @@ void QAbstractItemViewPrivate::_q_columnsAboutToBeRemoved(const QModelIndex &par */ void QAbstractItemViewPrivate::_q_columnsRemoved(const QModelIndex &index, int start, int end) { - Q_UNUSED(index) - Q_UNUSED(start) - Q_UNUSED(end) + Q_UNUSED(index); + Q_UNUSED(start); + Q_UNUSED(end); Q_Q(QAbstractItemView); if (q->isVisible()) @@ -3505,9 +3505,9 @@ void QAbstractItemViewPrivate::_q_columnsRemoved(const QModelIndex &index, int s */ void QAbstractItemViewPrivate::_q_rowsInserted(const QModelIndex &index, int start, int end) { - Q_UNUSED(index) - Q_UNUSED(start) - Q_UNUSED(end) + Q_UNUSED(index); + Q_UNUSED(start); + Q_UNUSED(end); #ifndef QT_NO_ACCESSIBILITY Q_Q(QAbstractItemView); @@ -3528,9 +3528,9 @@ void QAbstractItemViewPrivate::_q_rowsInserted(const QModelIndex &index, int sta */ void QAbstractItemViewPrivate::_q_columnsInserted(const QModelIndex &index, int start, int end) { - Q_UNUSED(index) - Q_UNUSED(start) - Q_UNUSED(end) + Q_UNUSED(index); + Q_UNUSED(start); + Q_UNUSED(end); Q_Q(QAbstractItemView); if (q->isVisible()) @@ -3955,7 +3955,7 @@ QItemSelectionModel::SelectionFlags QAbstractItemView::selectionCommand(const QM QItemSelectionModel::SelectionFlags QAbstractItemViewPrivate::multiSelectionCommand( const QModelIndex &index, const QEvent *event) const { - Q_UNUSED(index) + Q_UNUSED(index); if (event) { switch (event->type()) { diff --git a/src/widgets/itemviews/qtableview.cpp b/src/widgets/itemviews/qtableview.cpp index 4afcc3ef6a..091e998036 100644 --- a/src/widgets/itemviews/qtableview.cpp +++ b/src/widgets/itemviews/qtableview.cpp @@ -975,7 +975,7 @@ void QTableViewPrivate::drawAndClipSpans(const QRegion &area, QPainter *painter, */ void QTableViewPrivate::_q_updateSpanInsertedRows(const QModelIndex &parent, int start, int end) { - Q_UNUSED(parent) + Q_UNUSED(parent); spans.updateInsertedRows(start, end); } @@ -985,7 +985,7 @@ void QTableViewPrivate::_q_updateSpanInsertedRows(const QModelIndex &parent, int */ void QTableViewPrivate::_q_updateSpanInsertedColumns(const QModelIndex &parent, int start, int end) { - Q_UNUSED(parent) + Q_UNUSED(parent); spans.updateInsertedColumns(start, end); } @@ -995,7 +995,7 @@ void QTableViewPrivate::_q_updateSpanInsertedColumns(const QModelIndex &parent, */ void QTableViewPrivate::_q_updateSpanRemovedRows(const QModelIndex &parent, int start, int end) { - Q_UNUSED(parent) + Q_UNUSED(parent); spans.updateRemovedRows(start, end); } @@ -1005,7 +1005,7 @@ void QTableViewPrivate::_q_updateSpanRemovedRows(const QModelIndex &parent, int */ void QTableViewPrivate::_q_updateSpanRemovedColumns(const QModelIndex &parent, int start, int end) { - Q_UNUSED(parent) + Q_UNUSED(parent); spans.updateRemovedColumns(start, end); } @@ -3451,7 +3451,7 @@ void QTableView::selectionChanged(const QItemSelection &selected, const QItemSelection &deselected) { Q_D(QTableView); - Q_UNUSED(d) + Q_UNUSED(d); #ifndef QT_NO_ACCESSIBILITY if (QAccessible::isActive()) { // ### does not work properly for selection ranges. diff --git a/src/widgets/kernel/qwidgetaction.cpp b/src/widgets/kernel/qwidgetaction.cpp index 88e71fd800..f9cd82f788 100644 --- a/src/widgets/kernel/qwidgetaction.cpp +++ b/src/widgets/kernel/qwidgetaction.cpp @@ -250,7 +250,7 @@ bool QWidgetAction::eventFilter(QObject *obj, QEvent *event) */ QWidget *QWidgetAction::createWidget(QWidget *parent) { - Q_UNUSED(parent) + Q_UNUSED(parent); return nullptr; } diff --git a/src/widgets/kernel/qwidgetwindow.cpp b/src/widgets/kernel/qwidgetwindow.cpp index d6817caf96..a3befc4f0a 100644 --- a/src/widgets/kernel/qwidgetwindow.cpp +++ b/src/widgets/kernel/qwidgetwindow.cpp @@ -632,8 +632,8 @@ void QWidgetWindow::handleMouseEvent(QMouseEvent *event) QApplication::forwardEvent(receiver, &e, event); } #else - Q_UNUSED(contextMenuTrigger) - Q_UNUSED(oldOpenPopupCount) + Q_UNUSED(contextMenuTrigger); + Q_UNUSED(oldOpenPopupCount); } #endif diff --git a/src/widgets/util/qcompleter.cpp b/src/widgets/util/qcompleter.cpp index cdd06f4790..7febc23b2d 100644 --- a/src/widgets/util/qcompleter.cpp +++ b/src/widgets/util/qcompleter.cpp @@ -474,7 +474,7 @@ QMatchData QCompletionEngine::filterHistory() #else const bool isFsModel = false; #endif - Q_UNUSED(isFsModel) + Q_UNUSED(isFsModel); QList<int> v; QIndexMapper im(v); QMatchData m(im, -1, true); diff --git a/src/widgets/util/qsystemtrayicon.cpp b/src/widgets/util/qsystemtrayicon.cpp index 556427387f..abd49237a6 100644 --- a/src/widgets/util/qsystemtrayicon.cpp +++ b/src/widgets/util/qsystemtrayicon.cpp @@ -748,7 +748,7 @@ void QSystemTrayIconPrivate::addPlatformMenu(QMenu *menu) const if (platformMenu) menu->setPlatformMenu(platformMenu); #else - Q_UNUSED(menu) + Q_UNUSED(menu); #endif // QT_CONFIG(menu) } diff --git a/src/widgets/util/qsystemtrayicon_x11.cpp b/src/widgets/util/qsystemtrayicon_x11.cpp index 5d446cf22a..dfe60319e8 100644 --- a/src/widgets/util/qsystemtrayicon_x11.cpp +++ b/src/widgets/util/qsystemtrayicon_x11.cpp @@ -125,7 +125,7 @@ void QSystemTrayIconSys::mousePressEvent(QMouseEvent *ev) if (ev->button() == Qt::RightButton && q->contextMenu()) q->contextMenu()->popup(globalPos); #else - Q_UNUSED(globalPos) + Q_UNUSED(globalPos); #endif // QT_NO_CONTEXTMENU if (QBalloonTip::isBalloonVisible()) { diff --git a/src/widgets/widgets/qabstractspinbox.cpp b/src/widgets/widgets/qabstractspinbox.cpp index f87e4d1a2a..c9753f5f51 100644 --- a/src/widgets/widgets/qabstractspinbox.cpp +++ b/src/widgets/widgets/qabstractspinbox.cpp @@ -1952,7 +1952,7 @@ void QAbstractSpinBoxPrivate::clearCache() const QVariant QAbstractSpinBoxPrivate::calculateAdaptiveDecimalStep(int steps) const { - Q_UNUSED(steps) + Q_UNUSED(steps); return singleStep; } diff --git a/src/widgets/widgets/qcalendarwidget.cpp b/src/widgets/widgets/qcalendarwidget.cpp index b77b92f8a5..830216ef72 100644 --- a/src/widgets/widgets/qcalendarwidget.cpp +++ b/src/widgets/widgets/qcalendarwidget.cpp @@ -1621,7 +1621,7 @@ public: protected: void paintEvent(QPaintEvent *e) override { - Q_UNUSED(e) + Q_UNUSED(e); QStyleOptionToolButton opt; initStyleOption(&opt); diff --git a/src/widgets/widgets/qdockwidget.cpp b/src/widgets/widgets/qdockwidget.cpp index 41c57eebc1..cdf5574eca 100644 --- a/src/widgets/widgets/qdockwidget.cpp +++ b/src/widgets/widgets/qdockwidget.cpp @@ -1466,7 +1466,7 @@ void QDockWidget::closeEvent(QCloseEvent *event) /*! \reimp */ void QDockWidget::paintEvent(QPaintEvent *event) { - Q_UNUSED(event) + Q_UNUSED(event); Q_D(QDockWidget); QDockWidgetLayout *layout diff --git a/src/widgets/widgets/qmainwindow.cpp b/src/widgets/widgets/qmainwindow.cpp index 9379fb04ef..9ba7260072 100644 --- a/src/widgets/widgets/qmainwindow.cpp +++ b/src/widgets/widgets/qmainwindow.cpp @@ -1365,7 +1365,7 @@ void QMainWindow::setUnifiedTitleAndToolBarOnMac(bool enabled) update(); #else - Q_UNUSED(enabled) + Q_UNUSED(enabled); #endif } diff --git a/src/widgets/widgets/qtabbar.cpp b/src/widgets/widgets/qtabbar.cpp index 858ec9c03c..68ac7c3c59 100644 --- a/src/widgets/widgets/qtabbar.cpp +++ b/src/widgets/widgets/qtabbar.cpp @@ -1632,7 +1632,7 @@ QSize QTabBar::tabSizeHint(int index) const */ void QTabBar::tabInserted(int index) { - Q_UNUSED(index) + Q_UNUSED(index); } /*! @@ -1643,7 +1643,7 @@ void QTabBar::tabInserted(int index) */ void QTabBar::tabRemoved(int index) { - Q_UNUSED(index) + Q_UNUSED(index); } /*! @@ -2364,7 +2364,7 @@ void QTabBar::wheelEvent(QWheelEvent *event) d->setCurrentNextEnabledIndex(offset); QWidget::wheelEvent(event); #else - Q_UNUSED(event) + Q_UNUSED(event); #endif } #endif // QT_CONFIG(wheelevent) diff --git a/src/widgets/widgets/qtabwidget.cpp b/src/widgets/widgets/qtabwidget.cpp index 710d5a42a7..35b097b0c7 100644 --- a/src/widgets/widgets/qtabwidget.cpp +++ b/src/widgets/widgets/qtabwidget.cpp @@ -1266,7 +1266,7 @@ QString QTabWidget::tabWhatsThis(int index) const */ void QTabWidget::tabInserted(int index) { - Q_UNUSED(index) + Q_UNUSED(index); } /*! @@ -1277,7 +1277,7 @@ void QTabWidget::tabInserted(int index) */ void QTabWidget::tabRemoved(int index) { - Q_UNUSED(index) + Q_UNUSED(index); } /*! diff --git a/src/widgets/widgets/qtextedit.cpp b/src/widgets/widgets/qtextedit.cpp index f98c99c72b..111493904f 100644 --- a/src/widgets/widgets/qtextedit.cpp +++ b/src/widgets/widgets/qtextedit.cpp @@ -1111,7 +1111,7 @@ bool QTextEdit::event(QEvent *e) d->sendControlEvent(e); } #else - Q_UNUSED(d) + Q_UNUSED(d); #endif // QT_NO_CONTEXTMENU #ifdef QT_KEYPAD_NAVIGATION if (e->type() == QEvent::EnterEditFocus || e->type() == QEvent::LeaveEditFocus) { diff --git a/src/widgets/widgets/qtoolbox.cpp b/src/widgets/widgets/qtoolbox.cpp index 57d26bb6ee..9adf8fcd05 100644 --- a/src/widgets/widgets/qtoolbox.cpp +++ b/src/widgets/widgets/qtoolbox.cpp @@ -726,7 +726,7 @@ void QToolBox::changeEvent(QEvent *ev) */ void QToolBox::itemInserted(int index) { - Q_UNUSED(index) + Q_UNUSED(index); } /*! @@ -737,7 +737,7 @@ void QToolBox::itemInserted(int index) */ void QToolBox::itemRemoved(int index) { - Q_UNUSED(index) + Q_UNUSED(index); } /*! \reimp */ diff --git a/src/widgets/widgets/qwidgetanimator.cpp b/src/widgets/widgets/qwidgetanimator.cpp index cec6ba1dea..9a4045196c 100644 --- a/src/widgets/widgets/qwidgetanimator.cpp +++ b/src/widgets/widgets/qwidgetanimator.cpp @@ -55,7 +55,7 @@ QWidgetAnimator::QWidgetAnimator(QMainWindowLayout *layout) : m_mainWindowLayout(layout) #endif { - Q_UNUSED(layout) + Q_UNUSED(layout); } void QWidgetAnimator::abort(QWidget *w) diff --git a/src/widgets/widgets/qwidgetlinecontrol.cpp b/src/widgets/widgets/qwidgetlinecontrol.cpp index 3fb419c7a5..08f3133b96 100644 --- a/src/widgets/widgets/qwidgetlinecontrol.cpp +++ b/src/widgets/widgets/qwidgetlinecontrol.cpp @@ -694,7 +694,7 @@ void QWidgetLineControl::selectWordAtPos(int cursor) */ bool QWidgetLineControl::finishChange(int validateFromState, bool update, bool edited) { - Q_UNUSED(update) + Q_UNUSED(update); if (m_textDirty) { // do validation @@ -788,7 +788,7 @@ void QWidgetLineControl::internalSetText(const QString &txt, int pos, bool edite } } #else - Q_UNUSED(changed) + Q_UNUSED(changed); #endif } diff --git a/src/widgets/widgets/qwidgettextcontrol.cpp b/src/widgets/widgets/qwidgettextcontrol.cpp index 7a175b4b06..67bfffebaa 100644 --- a/src/widgets/widgets/qwidgettextcontrol.cpp +++ b/src/widgets/widgets/qwidgettextcontrol.cpp @@ -697,9 +697,9 @@ void QWidgetTextControlPrivate::_q_contentsChanged(int from, int charsRemoved, i delete ev; } #else - Q_UNUSED(from) - Q_UNUSED(charsRemoved) - Q_UNUSED(charsAdded) + Q_UNUSED(from); + Q_UNUSED(charsRemoved); + Q_UNUSED(charsAdded); #endif } diff --git a/tests/auto/corelib/animation/qanimationgroup/tst_qanimationgroup.cpp b/tests/auto/corelib/animation/qanimationgroup/tst_qanimationgroup.cpp index 2b7de50971..8fc6d1ac61 100644 --- a/tests/auto/corelib/animation/qanimationgroup/tst_qanimationgroup.cpp +++ b/tests/auto/corelib/animation/qanimationgroup/tst_qanimationgroup.cpp @@ -83,8 +83,8 @@ public: virtual void updateState(QAbstractAnimation::State oldState, QAbstractAnimation::State newState) { - Q_UNUSED(oldState) - Q_UNUSED(newState) + Q_UNUSED(oldState); + Q_UNUSED(newState); }; }; diff --git a/tests/auto/corelib/animation/qparallelanimationgroup/tst_qparallelanimationgroup.cpp b/tests/auto/corelib/animation/qparallelanimationgroup/tst_qparallelanimationgroup.cpp index 18a6268ec0..8b36a7a246 100644 --- a/tests/auto/corelib/animation/qparallelanimationgroup/tst_qparallelanimationgroup.cpp +++ b/tests/auto/corelib/animation/qparallelanimationgroup/tst_qparallelanimationgroup.cpp @@ -96,8 +96,8 @@ public: virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { - Q_UNUSED(oldState) - Q_UNUSED(newState) + Q_UNUSED(oldState); + Q_UNUSED(newState); }; }; @@ -112,8 +112,8 @@ public: virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { - Q_UNUSED(oldState) - Q_UNUSED(newState) + Q_UNUSED(oldState); + Q_UNUSED(newState); }; virtual int duration() const { diff --git a/tests/auto/corelib/animation/qsequentialanimationgroup/tst_qsequentialanimationgroup.cpp b/tests/auto/corelib/animation/qsequentialanimationgroup/tst_qsequentialanimationgroup.cpp index aae2d1b7d0..63a254c26a 100644 --- a/tests/auto/corelib/animation/qsequentialanimationgroup/tst_qsequentialanimationgroup.cpp +++ b/tests/auto/corelib/animation/qsequentialanimationgroup/tst_qsequentialanimationgroup.cpp @@ -100,8 +100,8 @@ public: virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { - Q_UNUSED(oldState) - Q_UNUSED(newState) + Q_UNUSED(oldState); + Q_UNUSED(newState); }; }; diff --git a/tests/auto/corelib/io/qabstractfileengine/tst_qabstractfileengine.cpp b/tests/auto/corelib/io/qabstractfileengine/tst_qabstractfileengine.cpp index 1072cb44f9..1671e9d98b 100644 --- a/tests/auto/corelib/io/qabstractfileengine/tst_qabstractfileengine.cpp +++ b/tests/auto/corelib/io/qabstractfileengine/tst_qabstractfileengine.cpp @@ -195,22 +195,22 @@ public: // bool link(const QString &newName) // { - // Q_UNUSED(newName) + // Q_UNUSED(newName); // return false; // } // bool mkdir(const QString &dirName, bool createParentDirectories) const // { - // Q_UNUSED(dirName) - // Q_UNUSED(createParentDirectories) + // Q_UNUSED(dirName); + // Q_UNUSED(createParentDirectories); // return false; // } // bool rmdir(const QString &dirName, bool recurseParentDirectories) const // { - // Q_UNUSED(dirName) - // Q_UNUSED(recurseParentDirectories) + // Q_UNUSED(dirName); + // Q_UNUSED(recurseParentDirectories); // return false; // } @@ -247,7 +247,7 @@ public: // bool setPermissions(uint perms) // { - // Q_UNUSED(perms) + // Q_UNUSED(perms); // return false; // } @@ -373,8 +373,8 @@ public: // typedef QAbstractFileEngineIterator Iterator; // Iterator *beginEntryList(QDir::Filters filters, const QStringList &filterNames) // { - // Q_UNUSED(filters) - // Q_UNUSED(filterNames) + // Q_UNUSED(filters); + // Q_UNUSED(filterNames); // return 0; // } diff --git a/tests/auto/corelib/itemmodels/qsortfilterproxymodel_common/tst_qsortfilterproxymodel.cpp b/tests/auto/corelib/itemmodels/qsortfilterproxymodel_common/tst_qsortfilterproxymodel.cpp index 66a9e85dff..fc0f847dc0 100644 --- a/tests/auto/corelib/itemmodels/qsortfilterproxymodel_common/tst_qsortfilterproxymodel.cpp +++ b/tests/auto/corelib/itemmodels/qsortfilterproxymodel_common/tst_qsortfilterproxymodel.cpp @@ -2823,7 +2823,7 @@ public: bool hasChildren(const QModelIndex &parent = QModelIndex()) const override { - Q_UNUSED(parent) + Q_UNUSED(parent); return true; } @@ -2834,7 +2834,7 @@ public: int columnCount(const QModelIndex& parent = QModelIndex()) const override { - Q_UNUSED(parent) + Q_UNUSED(parent); return cols; } @@ -3986,14 +3986,14 @@ public: using QAbstractListModel::QAbstractListModel; QVariant data(const QModelIndex &index, int role) const override { - Q_UNUSED(index) - Q_UNUSED(role) + Q_UNUSED(index); + Q_UNUSED(role); return QVariant(); } int rowCount(const QModelIndex &parent = QModelIndex()) const override { - Q_UNUSED(parent) + Q_UNUSED(parent); return 0; } @@ -4034,15 +4034,15 @@ public: int rowCount(const QModelIndex &parent = QModelIndex()) const override { - Q_UNUSED(parent) + Q_UNUSED(parent); return 10; } bool canDropMimeData(const QMimeData *, Qt::DropAction, int row, int column, const QModelIndex &parent) const override { - Q_UNUSED(row) - Q_UNUSED(column) + Q_UNUSED(row); + Q_UNUSED(column); return parent.row() % 2 == 0; } }; @@ -4771,7 +4771,7 @@ void tst_QSortFilterProxyModel::filterAndInsertColumn() {} bool filterAcceptsColumn(int source_column, const QModelIndex &source_parent) const override { - Q_UNUSED(source_parent) + Q_UNUSED(source_parent); switch (filerMode){ case FilterAll: return true; @@ -5030,8 +5030,8 @@ void tst_QSortFilterProxyModel::invalidateColumnsOrRowsFilter() } bool filterAcceptsColumn(int source_column, const QModelIndex &source_parent) const override { - Q_UNUSED(source_column) - Q_UNUSED(source_parent) + Q_UNUSED(source_column); + Q_UNUSED(source_parent); columnFiltered++; return true; diff --git a/tests/auto/corelib/itemmodels/qtransposeproxymodel/tst_qtransposeproxymodel.cpp b/tests/auto/corelib/itemmodels/qtransposeproxymodel/tst_qtransposeproxymodel.cpp index ea44980657..a5043b956a 100644 --- a/tests/auto/corelib/itemmodels/qtransposeproxymodel/tst_qtransposeproxymodel.cpp +++ b/tests/auto/corelib/itemmodels/qtransposeproxymodel/tst_qtransposeproxymodel.cpp @@ -713,7 +713,7 @@ void tst_QTransposeProxyModel::span() {} QSize span(const QModelIndex &index) const override { - Q_UNUSED(index) + Q_UNUSED(index); return QSize(2, 1); } }; diff --git a/tests/auto/corelib/plugin/quuid/testProcessUniqueness/main.cpp b/tests/auto/corelib/plugin/quuid/testProcessUniqueness/main.cpp index d1e138d8eb..126d2bb435 100644 --- a/tests/auto/corelib/plugin/quuid/testProcessUniqueness/main.cpp +++ b/tests/auto/corelib/plugin/quuid/testProcessUniqueness/main.cpp @@ -32,8 +32,8 @@ // This is a testcase for QTBUG-11213 int main(int argc, char **argv) { - Q_UNUSED(argc) - Q_UNUSED(argv) + Q_UNUSED(argc); + Q_UNUSED(argv); // Now print a few uuids. printf("%s", qPrintable(QUuid::createUuid().toString())); diff --git a/tests/auto/corelib/serialization/qtextstream/tst_qtextstream.cpp b/tests/auto/corelib/serialization/qtextstream/tst_qtextstream.cpp index cef67d680b..6a09512235 100644 --- a/tests/auto/corelib/serialization/qtextstream/tst_qtextstream.cpp +++ b/tests/auto/corelib/serialization/qtextstream/tst_qtextstream.cpp @@ -609,15 +609,15 @@ class ErrorDevice : public QIODevice protected: qint64 readData(char *data, qint64 maxlen) override { - Q_UNUSED(data) - Q_UNUSED(maxlen) + Q_UNUSED(data); + Q_UNUSED(maxlen); return -1; } qint64 writeData(const char *data, qint64 len) override { - Q_UNUSED(data) - Q_UNUSED(len) + Q_UNUSED(data); + Q_UNUSED(len); return -1; } }; diff --git a/tests/auto/corelib/text/qchar/tst_qchar.cpp b/tests/auto/corelib/text/qchar/tst_qchar.cpp index 83a6765f2e..bad8665d90 100644 --- a/tests/auto/corelib/text/qchar/tst_qchar.cpp +++ b/tests/auto/corelib/text/qchar/tst_qchar.cpp @@ -881,7 +881,7 @@ void tst_QChar::normalization() QFETCH(QStringList, columns); QFETCH(int, part); - Q_UNUSED(part) + Q_UNUSED(part); // CONFORMANCE: // 1. The following invariants must be true for all conformant implementations diff --git a/tests/auto/corelib/tools/collections/tst_collections.cpp b/tests/auto/corelib/tools/collections/tst_collections.cpp index 61a0db26de..23a734f428 100644 --- a/tests/auto/corelib/tools/collections/tst_collections.cpp +++ b/tests/auto/corelib/tools/collections/tst_collections.cpp @@ -2640,7 +2640,7 @@ void instantiateContainer() constIt = constContainer.end(); constIt = constContainer.cend(); container.constEnd(); - Q_UNUSED(constIt) + Q_UNUSED(constIt); container.clear(); container.contains(value); @@ -2663,7 +2663,7 @@ void instantiateMutableIterationContainer() typename ContainerType::iterator it; it = container.begin(); it = container.end(); - Q_UNUSED(it) + Q_UNUSED(it); } template <typename ContainerType, typename ValueType> @@ -2824,7 +2824,7 @@ void tst_Collections::qtimerList() template <typename Container> void testContainerTypedefs(Container container) { - Q_UNUSED(container) + Q_UNUSED(container); { QVERIFY_TYPE(typename Container::value_type); } { QVERIFY_TYPE(typename Container::iterator); } { QVERIFY_TYPE(typename Container::const_iterator); } @@ -2838,7 +2838,7 @@ void testContainerTypedefs(Container container) template <typename Container> void testPairAssociativeContainerTypedefs(Container container) { - Q_UNUSED(container) + Q_UNUSED(container); // TODO: Not sure how to define value_type for our associative containers // { QVERIFY_TYPE(typename Container::value_type); } @@ -2860,7 +2860,7 @@ void testPairAssociativeContainerTypedefs(Container container) template <typename Container> void testSetContainerTypedefs(Container container) { - Q_UNUSED(container) + Q_UNUSED(container); { QVERIFY_TYPE(typename Container::iterator); } { QVERIFY_TYPE(typename Container::const_iterator); } { QVERIFY_TYPE(typename Container::reference); } diff --git a/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp b/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp index c7f20ec6a4..ccba312807 100644 --- a/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp +++ b/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp @@ -736,7 +736,7 @@ size_t CountedObject::liveCount = 0; void tst_QArrayData::arrayOps() { - CountedObject::LeakChecker leakChecker; Q_UNUSED(leakChecker) + CountedObject::LeakChecker leakChecker; Q_UNUSED(leakChecker); const int intArray[5] = { 80, 101, 100, 114, 111 }; const QString stringArray[5] = { @@ -901,7 +901,7 @@ void tst_QArrayData::arrayOps() void tst_QArrayData::arrayOps2() { - CountedObject::LeakChecker leakChecker; Q_UNUSED(leakChecker) + CountedObject::LeakChecker leakChecker; Q_UNUSED(leakChecker); //////////////////////////////////////////////////////////////////////////// // appendInitialize diff --git a/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp b/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp index e099b4dfc7..d6ce37438b 100644 --- a/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp +++ b/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp @@ -250,9 +250,9 @@ static bool runHelper(const QString &program, const QStringList &arguments, QByt } return true; #else // QT_CONFIG(process) - Q_UNUSED(program) - Q_UNUSED(arguments) - Q_UNUSED(errorMessage) + Q_UNUSED(program); + Q_UNUSED(arguments); + Q_UNUSED(errorMessage); return false; #endif // QT_CONFIG(process) } diff --git a/tests/auto/gui/kernel/qkeysequence/tst_qkeysequence.cpp b/tests/auto/gui/kernel/qkeysequence/tst_qkeysequence.cpp index 874468c954..5a0702951e 100644 --- a/tests/auto/gui/kernel/qkeysequence/tst_qkeysequence.cpp +++ b/tests/auto/gui/kernel/qkeysequence/tst_qkeysequence.cpp @@ -423,7 +423,7 @@ void tst_QKeySequence::mnemonic() QFETCH(bool, warning); #ifdef QT_NO_DEBUG - Q_UNUSED(warning) + Q_UNUSED(warning); #else if (warning) { QString str = QString::fromLatin1("QKeySequence::mnemonic: \"%1\" contains multiple occurrences of '&'").arg(string); diff --git a/tests/auto/gui/qopengl/tst_qopengl.cpp b/tests/auto/gui/qopengl/tst_qopengl.cpp index caba2a1409..32c897e172 100644 --- a/tests/auto/gui/qopengl/tst_qopengl.cpp +++ b/tests/auto/gui/qopengl/tst_qopengl.cpp @@ -160,7 +160,7 @@ struct SharedResource : public QOpenGLSharedResource void freeResource(QOpenGLContext *context) { Q_ASSERT(context == QOpenGLContext::currentContext()); - Q_UNUSED(context) + Q_UNUSED(context); resource = 0; if (tracker) tracker->freeResourceCalls++; diff --git a/tests/auto/gui/text/qtextdocument/tst_qtextdocument.cpp b/tests/auto/gui/text/qtextdocument/tst_qtextdocument.cpp index 5d7f41efda..4e51ccea43 100644 --- a/tests/auto/gui/text/qtextdocument/tst_qtextdocument.cpp +++ b/tests/auto/gui/text/qtextdocument/tst_qtextdocument.cpp @@ -240,9 +240,9 @@ void tst_QTextDocument::writeActualAndExpected(const char *testTag, const QStrin out.close(); } #else - Q_UNUSED(testTag) - Q_UNUSED(actual) - Q_UNUSED(expected) + Q_UNUSED(testTag); + Q_UNUSED(actual); + Q_UNUSED(expected); #endif } diff --git a/tests/auto/gui/text/qtextmarkdownimporter/tst_qtextmarkdownimporter.cpp b/tests/auto/gui/text/qtextmarkdownimporter/tst_qtextmarkdownimporter.cpp index 78cc1da36e..474b2def60 100644 --- a/tests/auto/gui/text/qtextmarkdownimporter/tst_qtextmarkdownimporter.cpp +++ b/tests/auto/gui/text/qtextmarkdownimporter/tst_qtextmarkdownimporter.cpp @@ -382,7 +382,7 @@ void tst_QTextMarkdownImporter::pathological() // avoid crashing on crazy input QFile f(QFINDTESTDATA(filename)); QVERIFY(f.open(QFile::ReadOnly)); #ifdef QT_NO_DEBUG - Q_UNUSED(warning) + Q_UNUSED(warning); #else if (!warning.isEmpty()) QTest::ignoreMessage(QtWarningMsg, warning.toLatin1()); diff --git a/tests/auto/network/access/http2/tst_http2.cpp b/tests/auto/network/access/http2/tst_http2.cpp index 419d13e33c..2e59480c90 100644 --- a/tests/auto/network/access/http2/tst_http2.cpp +++ b/tests/auto/network/access/http2/tst_http2.cpp @@ -990,12 +990,12 @@ void tst_Http2::invalidFrame() void tst_Http2::invalidRequest(quint32 streamID) { - Q_UNUSED(streamID) + Q_UNUSED(streamID); } void tst_Http2::decompressionFailed(quint32 streamID) { - Q_UNUSED(streamID) + Q_UNUSED(streamID); } void tst_Http2::receivedRequest(quint32 streamID) @@ -1021,7 +1021,7 @@ void tst_Http2::receivedData(quint32 streamID) void tst_Http2::windowUpdated(quint32 streamID) { - Q_UNUSED(streamID) + Q_UNUSED(streamID); ++windowUpdates; } diff --git a/tests/auto/network/access/qhttpnetworkconnection/tst_qhttpnetworkconnection.cpp b/tests/auto/network/access/qhttpnetworkconnection/tst_qhttpnetworkconnection.cpp index e8d4c773f0..00afdd8177 100644 --- a/tests/auto/network/access/qhttpnetworkconnection/tst_qhttpnetworkconnection.cpp +++ b/tests/auto/network/access/qhttpnetworkconnection/tst_qhttpnetworkconnection.cpp @@ -233,7 +233,7 @@ void tst_QHttpNetworkConnection::finishedReply() void tst_QHttpNetworkConnection::finishedWithError(QNetworkReply::NetworkError errorCode, const QString &detail) { - Q_UNUSED(detail) + Q_UNUSED(detail); finishedWithErrorCalled = true; netErrorCode = errorCode; } @@ -425,7 +425,7 @@ void tst_QHttpNetworkConnection::_connect() void tst_QHttpNetworkConnection::challenge401(const QHttpNetworkRequest &request, QAuthenticator *authenticator) { - Q_UNUSED(request) + Q_UNUSED(request); QHttpNetworkReply *reply = qobject_cast<QHttpNetworkReply*>(sender()); if (reply) { @@ -563,7 +563,7 @@ void tst_QHttpNetworkConnection::compression() #ifndef QT_NO_SSL void tst_QHttpNetworkConnection::sslErrors(const QList<QSslError> &errors) { - Q_UNUSED(errors) + Q_UNUSED(errors); QHttpNetworkReply *reply = qobject_cast<QHttpNetworkReply*>(sender()); if (reply) { diff --git a/tests/auto/network/kernel/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp b/tests/auto/network/kernel/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp index 90da0b64e2..c84120a6e5 100644 --- a/tests/auto/network/kernel/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp +++ b/tests/auto/network/kernel/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp @@ -266,11 +266,11 @@ void tst_QNetworkProxyFactory::genericSystemProxy() QCOMPARE(systemProxy.first().port(), static_cast<quint16>(port)); qunsetenv(envVar); #else - Q_UNUSED(envVar) - Q_UNUSED(url) - Q_UNUSED(proxyType) - Q_UNUSED(hostName) - Q_UNUSED(port) + Q_UNUSED(envVar); + Q_UNUSED(url); + Q_UNUSED(proxyType); + Q_UNUSED(hostName); + Q_UNUSED(port); QSKIP("Generic system proxy not available on this platform."); #endif } diff --git a/tests/auto/sql/models/qsqltablemodel/tst_qsqltablemodel.cpp b/tests/auto/sql/models/qsqltablemodel/tst_qsqltablemodel.cpp index 81dcaa0975..cdc04f33a0 100644 --- a/tests/auto/sql/models/qsqltablemodel/tst_qsqltablemodel.cpp +++ b/tests/auto/sql/models/qsqltablemodel/tst_qsqltablemodel.cpp @@ -414,7 +414,7 @@ public: SelectRowOverrideTestModel(QObject *parent, QSqlDatabase db):QSqlTableModel(parent, db) { } bool selectRow(int row) { - Q_UNUSED(row) + Q_UNUSED(row); return select(); } }; diff --git a/tests/auto/tools/qmakelib/tst_qmakelib.h b/tests/auto/tools/qmakelib/tst_qmakelib.h index acfeb43ecd..b4a4d95b6f 100644 --- a/tests/auto/tools/qmakelib/tst_qmakelib.h +++ b/tests/auto/tools/qmakelib/tst_qmakelib.h @@ -91,7 +91,7 @@ public: { print(fileName, lineNo, type, msg); } virtual void fileMessage(int type, const QString &msg) - { Q_UNUSED(type) doPrint(msg); } + { Q_UNUSED(type); doPrint(msg); } virtual void aboutToEval(ProFile *, ProFile *, EvalFileType) {} virtual void doneWithEval(ProFile *) {} diff --git a/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp b/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp index b3b6e69c79..20c0dd993b 100644 --- a/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp +++ b/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp @@ -71,7 +71,7 @@ QT_END_NAMESPACE static inline bool isCaseSensitiveFileSystem(const QString &path) { - Q_UNUSED(path) + Q_UNUSED(path); #if defined(Q_OS_MAC) return pathconf(QFile::encodeName(path).constData(), _PC_CASE_SENSITIVE); #elif defined(Q_OS_WIN) diff --git a/tests/auto/widgets/graphicsview/qgraphicsscene/tst_qgraphicsscene.cpp b/tests/auto/widgets/graphicsview/qgraphicsscene/tst_qgraphicsscene.cpp index dcb44ef18b..8387d6f1dd 100644 --- a/tests/auto/widgets/graphicsview/qgraphicsscene/tst_qgraphicsscene.cpp +++ b/tests/auto/widgets/graphicsview/qgraphicsscene/tst_qgraphicsscene.cpp @@ -4020,7 +4020,7 @@ void tst_QGraphicsScene::polishItems() PolishItem *parent = new PolishItem; scene.addItem(parent); PolishItem *child = new PolishItem(parent); - Q_UNUSED(child) + Q_UNUSED(child); // test that QGraphicsScenePrivate::_q_polishItems() doesn't crash QMetaObject::invokeMethod(&scene,"_q_polishItems"); } diff --git a/tests/auto/widgets/itemviews/qabstractitemview/tst_qabstractitemview.cpp b/tests/auto/widgets/itemviews/qabstractitemview/tst_qabstractitemview.cpp index 99f82f92b2..02be27ffc7 100644 --- a/tests/auto/widgets/itemviews/qabstractitemview/tst_qabstractitemview.cpp +++ b/tests/auto/widgets/itemviews/qabstractitemview/tst_qabstractitemview.cpp @@ -64,7 +64,7 @@ static inline void moveCursorAway(const QWidget *topLevel) #ifndef QT_NO_CURSOR QCursor::setPos(topLevel->geometry().topRight() + QPoint(100, 0)); #else - Q_UNUSED(topLevel) + Q_UNUSED(topLevel); #endif } @@ -204,8 +204,8 @@ public: void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const { - Q_UNUSED(model) - Q_UNUSED(index) + Q_UNUSED(model); + Q_UNUSED(index); QDialog *dialog = qobject_cast<QDialog *>(editor); result = static_cast<QDialog::DialogCode>(dialog->result()); diff --git a/tests/auto/widgets/itemviews/qtableview/tst_qtableview.cpp b/tests/auto/widgets/itemviews/qtableview/tst_qtableview.cpp index 1cbfb4d7be..8e2f5ba068 100644 --- a/tests/auto/widgets/itemviews/qtableview/tst_qtableview.cpp +++ b/tests/auto/widgets/itemviews/qtableview/tst_qtableview.cpp @@ -2190,7 +2190,7 @@ void tst_QTableView::resizeRowsToContents() QFETCH(int, cellHeight); QFETCH(int, rowHeight); QFETCH(int, columnWidth); - Q_UNUSED(columnWidth) + Q_UNUSED(columnWidth); QtTestTableModel model(rowCount, columnCount); QtTestTableView view; @@ -2236,7 +2236,7 @@ void tst_QTableView::resizeColumnsToContents() QFETCH(int, cellHeight); QFETCH(int, rowHeight); QFETCH(int, columnWidth); - Q_UNUSED(rowHeight) + Q_UNUSED(rowHeight); QtTestTableModel model(rowCount, columnCount); QtTestTableView view; @@ -3780,13 +3780,13 @@ public: int rowCount(const QModelIndex &parent = QModelIndex()) const override { - Q_UNUSED(parent) + Q_UNUSED(parent); return 10000000; } int columnCount(const QModelIndex &parent = QModelIndex()) const override { - Q_UNUSED(parent) + Q_UNUSED(parent); return 20000000; } }; @@ -3956,7 +3956,7 @@ public: private: bool eventFilter(QObject *obj, QEvent *e) override { - Q_UNUSED(obj) + Q_UNUSED(obj); if (e->type() == QEvent::Paint) ++paintEventCount_; return false; diff --git a/tests/auto/widgets/kernel/qgesturerecognizer/tst_qgesturerecognizer.cpp b/tests/auto/widgets/kernel/qgesturerecognizer/tst_qgesturerecognizer.cpp index 2479fa07a7..fa1bc3e57a 100644 --- a/tests/auto/widgets/kernel/qgesturerecognizer/tst_qgesturerecognizer.cpp +++ b/tests/auto/widgets/kernel/qgesturerecognizer/tst_qgesturerecognizer.cpp @@ -175,7 +175,7 @@ void tst_QGestureRecognizer::panGesture() QFETCH(int, panSubTest); QFETCH(bool, gestureExpected); - Q_UNUSED(panSubTest) // Single finger pan will be added later. + Q_UNUSED(panSubTest); // Single finger pan will be added later. const int panPoints = 2; const Qt::GestureType gestureType = Qt::PanGesture; @@ -219,7 +219,7 @@ void tst_QGestureRecognizer::pinchGesture() QFETCH(int, pinchSubTest); QFETCH(bool, gestureExpected); - Q_UNUSED(pinchSubTest) + Q_UNUSED(pinchSubTest); const Qt::GestureType gestureType = Qt::PinchGesture; TestWidget widget(GestureTypeVector(1, gestureType)); diff --git a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp index 4b6703e07e..6e9224cb5f 100644 --- a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp +++ b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp @@ -2119,9 +2119,9 @@ static void dumpFocusChain(QWidget *start, bool bForward, const char *desc = nul cur = bForward ? widgetPrivate->focus_next : widgetPrivate->focus_prev; } while (cur != start); #else - Q_UNUSED(start) - Q_UNUSED(bForward) - Q_UNUSED(desc) + Q_UNUSED(start); + Q_UNUSED(bForward); + Q_UNUSED(desc); #endif } @@ -7398,7 +7398,7 @@ void tst_QWidget::render_task188133() // Make sure QWidget::render does not trigger QWidget::repaint/update // and asserts for Qt::WA_WState_Created. const QPixmap pixmap = mainWindow.grab(QRect(QPoint(0, 0), QSize(-1, -1))); - Q_UNUSED(pixmap) + Q_UNUSED(pixmap); } void tst_QWidget::render_task211796() diff --git a/tests/benchmarks/corelib/time/qdatetime/main.cpp b/tests/benchmarks/corelib/time/qdatetime/main.cpp index 1d63547f8f..c6d2b84597 100644 --- a/tests/benchmarks/corelib/time/qdatetime/main.cpp +++ b/tests/benchmarks/corelib/time/qdatetime/main.cpp @@ -126,7 +126,7 @@ void tst_QDateTime::create() QBENCHMARK { for (int jd = JULIAN_DAY_2010; jd < JULIAN_DAY_2020; ++jd) { QDateTime test(QDate::fromJulianDay(jd), QTime::fromMSecsSinceStartOfDay(0)); - Q_UNUSED(test) + Q_UNUSED(test); } } } @@ -427,7 +427,7 @@ void tst_QDateTime::equivalent() for (const QDateTime &test : list) result = (test == other); } - Q_UNUSED(result) + Q_UNUSED(result); } void tst_QDateTime::equivalentUtc() @@ -440,7 +440,7 @@ void tst_QDateTime::equivalentUtc() for (const QDateTime &test : list) result = (test == other); } - Q_UNUSED(result) + Q_UNUSED(result); } void tst_QDateTime::lessThan() @@ -453,7 +453,7 @@ void tst_QDateTime::lessThan() for (const QDateTime &test : list) result = (test < other); } - Q_UNUSED(result) + Q_UNUSED(result); } void tst_QDateTime::lessThanUtc() @@ -466,7 +466,7 @@ void tst_QDateTime::lessThanUtc() for (const QDateTime &test : list) result = (test < other); } - Q_UNUSED(result) + Q_UNUSED(result); } void tst_QDateTime::currentDateTime() diff --git a/tests/benchmarks/gui/text/qfontmetrics/main.cpp b/tests/benchmarks/gui/text/qfontmetrics/main.cpp index d01d00c6a9..86c7cebfd4 100644 --- a/tests/benchmarks/gui/text/qfontmetrics/main.cpp +++ b/tests/benchmarks/gui/text/qfontmetrics/main.cpp @@ -53,7 +53,7 @@ private: void tst_QFontMetrics::testQFontMetrics( const QFontMetrics &fm ) { int fontHeight = fm.height(); - Q_UNUSED(fontHeight) + Q_UNUSED(fontHeight); } void tst_QFontMetrics::fontmetrics_create() diff --git a/tests/benchmarks/gui/text/qtext/main.cpp b/tests/benchmarks/gui/text/qtext/main.cpp index 192da24f3f..ef88f64d8f 100644 --- a/tests/benchmarks/gui/text/qtext/main.cpp +++ b/tests/benchmarks/gui/text/qtext/main.cpp @@ -399,7 +399,7 @@ void tst_QText::paintLayoutToPixmap_painterFill() void tst_QText::document() { QTextDocument *doc = new QTextDocument; - Q_UNUSED(doc) + Q_UNUSED(doc); QBENCHMARK { QTextDocument *doc = new QTextDocument; diff --git a/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/abstractitemview.cpp b/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/abstractitemview.cpp index 961cf4e03c..e5214b51fb 100644 --- a/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/abstractitemview.cpp +++ b/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/abstractitemview.cpp @@ -215,7 +215,7 @@ void AbstractItemView::setSelectionModel(QItemSelectionModel *smodel) /*virtual*/ void AbstractItemView::currentIndexChanged(const QModelIndex ¤t, const QModelIndex &previous) { - Q_UNUSED(previous) + Q_UNUSED(previous); if (current != m_currentIndex) m_currentIndex = current; @@ -225,24 +225,24 @@ void AbstractItemView::currentIndexChanged(const QModelIndex ¤t, const QMo void AbstractItemView::currentSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected) { - Q_UNUSED(selected) - Q_UNUSED(deselected) + Q_UNUSED(selected); + Q_UNUSED(deselected); } /*virtual*/ void AbstractItemView::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight) { - Q_UNUSED(topLeft) - Q_UNUSED(bottomRight) + Q_UNUSED(topLeft); + Q_UNUSED(bottomRight); // TODO implement if we like to edit view items. } /*virtual*/ void AbstractItemView::rowsAboutToBeInserted(const QModelIndex &index, int start, int end) { - Q_UNUSED(index) - Q_UNUSED(start) - Q_UNUSED(end) + Q_UNUSED(index); + Q_UNUSED(start); + Q_UNUSED(end); // TODO implement } @@ -250,17 +250,17 @@ void AbstractItemView::rowsAboutToBeInserted(const QModelIndex &index, int start /*virtual*/ void AbstractItemView::rowsAboutToBeRemoved(const QModelIndex &index,int start, int end) { - Q_UNUSED(index) - Q_UNUSED(start) - Q_UNUSED(end) + Q_UNUSED(index); + Q_UNUSED(start); + Q_UNUSED(end); } /*virtual*/ void AbstractItemView::rowsRemoved(const QModelIndex &parent,int start, int end) { - Q_UNUSED(parent) - Q_UNUSED(start) - Q_UNUSED(end) + Q_UNUSED(parent); + Q_UNUSED(start); + Q_UNUSED(end); if (start <= m_currentIndex.row() && m_currentIndex.row() <= end) { QModelIndex newCurrentIndex = m_model->index(start, 0, m_rootIndex); diff --git a/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/abstractscrollarea.cpp b/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/abstractscrollarea.cpp index 39847b8edb..e4588cc1d1 100644 --- a/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/abstractscrollarea.cpp +++ b/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/abstractscrollarea.cpp @@ -166,8 +166,8 @@ bool AbstractScrollArea::event(QEvent *e) void AbstractScrollArea::scrollContentsBy(qreal dx, qreal dy) { - Q_UNUSED(dx) - Q_UNUSED(dy) + Q_UNUSED(dx); + Q_UNUSED(dy); prepareGeometryChange(); } diff --git a/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/abstractviewitem.cpp b/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/abstractviewitem.cpp index 6a6df15e23..dbd7c40c35 100644 --- a/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/abstractviewitem.cpp +++ b/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/abstractviewitem.cpp @@ -96,7 +96,7 @@ void AbstractViewItem::themeChange() /*virtual*/ void AbstractViewItem::setSubtreeCacheEnabled(bool enabled) { - Q_UNUSED(enabled) + Q_UNUSED(enabled); ; // No impl } diff --git a/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/backgrounditem.cpp b/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/backgrounditem.cpp index 9f5f16d373..1b928ab908 100644 --- a/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/backgrounditem.cpp +++ b/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/backgrounditem.cpp @@ -58,7 +58,7 @@ void BackgroundItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) { - Q_UNUSED(widget) + Q_UNUSED(widget); painter->setCompositionMode(QPainter::CompositionMode_Source); painter->drawPixmap(option->exposedRect, m_background, option->exposedRect); } diff --git a/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/gvbwidget.cpp b/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/gvbwidget.cpp index 3682ae55e1..93285c0723 100644 --- a/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/gvbwidget.cpp +++ b/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/gvbwidget.cpp @@ -41,6 +41,6 @@ GvbWidget::~GvbWidget() void GvbWidget::keyPressEvent(QKeyEvent *event) { - Q_UNUSED(event) + Q_UNUSED(event); } diff --git a/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/listmodel.cpp b/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/listmodel.cpp index 933af2f770..1aa2cfa1ea 100644 --- a/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/listmodel.cpp +++ b/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/listmodel.cpp @@ -69,9 +69,9 @@ QVariant ListModel::data(const QModelIndex &index, int role) const bool ListModel::setData(const QModelIndex &index, const QVariant &value, int role) { // TODO implement if we like to edit list items - Q_UNUSED(index) - Q_UNUSED(value) - Q_UNUSED(role) + Q_UNUSED(index); + Q_UNUSED(value); + Q_UNUSED(role); return false; } diff --git a/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/simplelistview.cpp b/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/simplelistview.cpp index 7ff089fa1e..b1467238f8 100644 --- a/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/simplelistview.cpp +++ b/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/simplelistview.cpp @@ -409,7 +409,7 @@ void SimpleListView::setListItemCaching(bool enabled) void SimpleListView::scrollContentsBy(qreal dx, qreal dy) { Q_D(SimpleListView); - Q_UNUSED(dx) + Q_UNUSED(dx); QRectF contentRect = d->m_content->boundingRect(); QRectF viewportRect = viewport()->boundingRect(); QPointF contentPos = d->m_content->pos(); diff --git a/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/webview.cpp b/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/webview.cpp index 59ed50157b..d09bd43214 100644 --- a/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/webview.cpp +++ b/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/webview.cpp @@ -88,7 +88,7 @@ void WebViewPrivate::_q_loadStarted() void WebViewPrivate::_q_loadProgress(int progress) { - Q_UNUSED(progress) + Q_UNUSED(progress); // qDebug() << "WebView: load progress" << progress; adjustSize(); } diff --git a/tests/libfuzzer/gui/painting/qcolorspace/fromiccprofile/main.cpp b/tests/libfuzzer/gui/painting/qcolorspace/fromiccprofile/main.cpp index 8a588c6e21..943f85d92e 100644 --- a/tests/libfuzzer/gui/painting/qcolorspace/fromiccprofile/main.cpp +++ b/tests/libfuzzer/gui/painting/qcolorspace/fromiccprofile/main.cpp @@ -35,7 +35,7 @@ extern "C" int LLVMFuzzerTestOneInput(const char *data, size_t size) { // to reduce noise and increase speed static char quiet[] = "QT_LOGGING_RULES=qt.gui.icc=false"; static int pe = putenv(quiet); - Q_UNUSED(pe) + Q_UNUSED(pe); static int argc = 3; static char arg1[] = "fuzzer"; static char arg2[] = "-platform"; diff --git a/tests/manual/diaglib/debugproxystyle.cpp b/tests/manual/diaglib/debugproxystyle.cpp index dc95241473..002220507b 100644 --- a/tests/manual/diaglib/debugproxystyle.cpp +++ b/tests/manual/diaglib/debugproxystyle.cpp @@ -63,7 +63,7 @@ QDebug operator<<(QDebug debug, const QStyleOption *option) debug << ", \"" << (textSize < 20 ? ivo->text : ivo->text.left(20) + QLatin1String("...")) << '"'; debug << ", "; #else // Qt 5 - Q_UNUSED(ivo) + Q_UNUSED(ivo); #endif } else { debug << "QStyleOption("; diff --git a/tests/manual/embeddedintoforeignwindow/main.cpp b/tests/manual/embeddedintoforeignwindow/main.cpp index 8edb3a3e9b..d6cff8ac04 100644 --- a/tests/manual/embeddedintoforeignwindow/main.cpp +++ b/tests/manual/embeddedintoforeignwindow/main.cpp @@ -111,7 +111,7 @@ static void showNativeWindow(WId wid) #ifdef Q_OS_WIN ShowWindow(HWND(wid), SW_SHOW); #else // Q_OS_WIN - Q_UNUSED(wid) + Q_UNUSED(wid); Q_UNIMPLEMENTED(); #endif } @@ -121,7 +121,7 @@ static void setFocusToNativeWindow(WId wid) #ifdef Q_OS_WIN SetFocus(HWND(wid)); #else // Q_OS_WIN - Q_UNUSED(wid) + Q_UNUSED(wid); Q_UNIMPLEMENTED(); #endif } @@ -131,7 +131,7 @@ static void destroyNativeWindow(WId wid) #ifdef Q_OS_WIN DestroyWindow(HWND(wid)); #else // Q_OS_WIN - Q_UNUSED(wid) + Q_UNUSED(wid); Q_UNIMPLEMENTED(); #endif } diff --git a/tests/manual/filetest/main.cpp b/tests/manual/filetest/main.cpp index 22c74af327..290dc7064e 100644 --- a/tests/manual/filetest/main.cpp +++ b/tests/manual/filetest/main.cpp @@ -197,7 +197,7 @@ static int rm(const char *fileName) static int rmr(const char *dirName) { #if QT_VERSION < 0x050000 - Q_UNUSED(dirName) + Q_UNUSED(dirName); return 1; #else QDir dir(QString::fromLocal8Bit(dirName)); @@ -213,7 +213,7 @@ static int rmr(const char *dirName) int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); - Q_UNUSED(a) + Q_UNUSED(a); if (argc >= 3 && !qstrcmp(argv[1], "ls")) return ls(argc -2, const_cast<const char **>(argv + 2), true); diff --git a/tests/manual/foreignwindows/main.cpp b/tests/manual/foreignwindows/main.cpp index cad71d183a..cc5b16391c 100644 --- a/tests/manual/foreignwindows/main.cpp +++ b/tests/manual/foreignwindows/main.cpp @@ -82,7 +82,7 @@ static WId createInternalWindow(const QString &name) } } #else // Q_OS_WIN - Q_UNUSED(name) + Q_UNUSED(name); #endif return result; } diff --git a/tests/manual/qnetworkreply/main.cpp b/tests/manual/qnetworkreply/main.cpp index 1086498553..0ba8a19913 100644 --- a/tests/manual/qnetworkreply/main.cpp +++ b/tests/manual/qnetworkreply/main.cpp @@ -175,7 +175,7 @@ void tst_qnetworkreply::setSslConfiguration() #elif defined(Q_OS_MAC) QCOMPARE(rootCertLoadingAllowed, false); #else - Q_UNUSED(rootCertLoadingAllowed) + Q_UNUSED(rootCertLoadingAllowed); #endif // other platforms: undecided (Windows: depends on the version) if (works) { QCOMPARE(reply->error(), QNetworkReply::NoError); |