diff options
author | Marco Bubke <[email protected]> | 2025-04-15 11:08:46 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2025-04-15 09:14:28 +0000 |
commit | a807c28cde6686c20afda0352fd0256a002f20ee (patch) | |
tree | aab0c9df8430a419e662127feb1f2c08e19bcc17 /src/plugins | |
parent | 0503f267e282f327f27067e50db657d6b6e5dd7a (diff) |
Fix warning for ';'
The macro already contain a ';'. Removing the argument or
[[maybe_unused]] would maybe even a better approach.
Change-Id: I31750d10a4f252c667e7c0e5e13bf1085dbe11a2
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins')
36 files changed, 64 insertions, 62 deletions
diff --git a/src/plugins/android/javaparser.cpp b/src/plugins/android/javaparser.cpp index a6b6146f1d2..9caad701a49 100644 --- a/src/plugins/android/javaparser.cpp +++ b/src/plugins/android/javaparser.cpp @@ -33,7 +33,7 @@ void JavaParser::setSourceDirectory(const FilePath &sourceDirectory) OutputLineParser::Result JavaParser::handleLine(const QString &line, OutputFormat type) { - Q_UNUSED(type); + Q_UNUSED(type) static const QRegularExpression javaRegExp("^(.*\\[javac\\]\\s)(.*\\.java):(\\d+):(.*)$"); const QRegularExpressionMatch match = javaRegExp.match(line); diff --git a/src/plugins/android/splashscreencontainerwidget.cpp b/src/plugins/android/splashscreencontainerwidget.cpp index bf2f64095e6..be92477389f 100644 --- a/src/plugins/android/splashscreencontainerwidget.cpp +++ b/src/plugins/android/splashscreencontainerwidget.cpp @@ -84,7 +84,7 @@ class SplashScreenWidget : public QWidget private: void paintEvent(QPaintEvent *event) override { - Q_UNUSED(event); + Q_UNUSED(event) QPainter painter(this); painter.setPen(QPen(Qt::gray, 1)); painter.setBrush(QBrush(m_parentWidget->m_backgroundColor)); diff --git a/src/plugins/appstatisticsmonitor/chart.cpp b/src/plugins/appstatisticsmonitor/chart.cpp index 86e99283fa7..b47f92e8325 100644 --- a/src/plugins/appstatisticsmonitor/chart.cpp +++ b/src/plugins/appstatisticsmonitor/chart.cpp @@ -159,7 +159,7 @@ void Chart::clear() void Chart::paintEvent(QPaintEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) QPainter painter(this); // painter.fillRect(rect(), creatorColor(Theme::Token_Background_Default)); left for the future painter.fillRect(rect(), creatorColor(Theme::BackgroundColorNormal)); diff --git a/src/plugins/clangformat/llvmfilesystem.h b/src/plugins/clangformat/llvmfilesystem.h index 0bfa5afe614..0fc5f30083b 100644 --- a/src/plugins/clangformat/llvmfilesystem.h +++ b/src/plugins/clangformat/llvmfilesystem.h @@ -20,7 +20,7 @@ class LlvmFileAdapter : public File public: LlvmFileAdapter(const Twine &Path) { - Q_UNUSED(Path); + Q_UNUSED(Path) } /// Destroy the file after closing it (if open). /// Sub-classes should generally call close() inside their destructors. We @@ -47,8 +47,8 @@ public: bool RequiresNullTerminator = true, bool IsVolatile = false) override { - Q_UNUSED(RequiresNullTerminator); - Q_UNUSED(IsVolatile); + Q_UNUSED(RequiresNullTerminator) + Q_UNUSED(IsVolatile) const FilePath path = FilePath::fromUserInput(QString::fromStdString(Name.str())); const Result<QByteArray> contents = path.fileContents(FileSize, 0); @@ -102,8 +102,8 @@ public: /// \note The 'end' iterator is directory_iterator(). vfs::directory_iterator dir_begin(const Twine &Dir, std::error_code &EC) override { - Q_UNUSED(Dir); - Q_UNUSED(EC); + Q_UNUSED(Dir) + Q_UNUSED(EC) Q_UNIMPLEMENTED(); return {}; } @@ -112,7 +112,7 @@ public: /// this file system and may propagate down for nested file systems. std::error_code setCurrentWorkingDirectory(const Twine &Path) override { - Q_UNUSED(Path); + Q_UNUSED(Path) Q_UNIMPLEMENTED(); return std::make_error_code(std::errc::not_supported); } @@ -133,8 +133,8 @@ public: #endif override { - Q_UNUSED(Path); - Q_UNUSED(Output); + Q_UNUSED(Path) + Q_UNUSED(Output) Q_UNIMPLEMENTED(); return std::make_error_code(std::errc::not_supported); diff --git a/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp b/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp index 0b009422d17..81f65c3efc9 100644 --- a/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp +++ b/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp @@ -818,7 +818,7 @@ void CMakeBuildStep::updateDeploymentData() QString install = currentInstallPrefix(); FilePath rootDir = cmakeExecutable().withNewPath(stagingDir().path()); - Q_UNUSED(install); + Q_UNUSED(install) DeploymentData deploymentData; deploymentData.setLocalInstallRoot(rootDir); diff --git a/src/plugins/coreplugin/basefilewizardfactory.cpp b/src/plugins/coreplugin/basefilewizardfactory.cpp index 7935ce53b69..5d492126be7 100644 --- a/src/plugins/coreplugin/basefilewizardfactory.cpp +++ b/src/plugins/coreplugin/basefilewizardfactory.cpp @@ -50,7 +50,7 @@ Wizard *BaseFileWizardFactory::runWizardImpl(const FilePath &path, Id platform, const QVariantMap &extraValues, bool showWizard) { - Q_UNUSED(showWizard); + Q_UNUSED(showWizard) QTC_ASSERT(!path.isEmpty(), return nullptr); // Create dialog and run it. Ensure that the dialog is deleted when diff --git a/src/plugins/coreplugin/dialogs/settingsdialog.cpp b/src/plugins/coreplugin/dialogs/settingsdialog.cpp index 6ca8b7d8f06..3b2dfa99b21 100644 --- a/src/plugins/coreplugin/dialogs/settingsdialog.cpp +++ b/src/plugins/coreplugin/dialogs/settingsdialog.cpp @@ -261,7 +261,7 @@ static bool categoryVisible([[maybe_unused]] const Id &id) if (anyOf(list, [id](const QString &str) { return id.toString().contains(str); })) return false; #else - Q_UNUSED(id); + Q_UNUSED(id) #endif return true; } diff --git a/src/plugins/ctfvisualizer/ctfstatisticsview.cpp b/src/plugins/ctfvisualizer/ctfstatisticsview.cpp index a1bb52f7e7a..6934ce4f873 100644 --- a/src/plugins/ctfvisualizer/ctfstatisticsview.cpp +++ b/src/plugins/ctfvisualizer/ctfstatisticsview.cpp @@ -32,7 +32,7 @@ CtfStatisticsView::CtfStatisticsView(CtfStatisticsModel *model, QWidget *parent) connect(selectionModel(), &QItemSelectionModel::currentChanged, this, [this](const QModelIndex ¤t, const QModelIndex &previous) { - Q_UNUSED(previous); + Q_UNUSED(previous) QModelIndex index = this->model()->index(current.row(), CtfStatisticsModel::Title); QString title = this->model()->data(index).toString(); emit this->eventTypeSelected(title); diff --git a/src/plugins/ctfvisualizer/ctftimelinemodel.cpp b/src/plugins/ctfvisualizer/ctftimelinemodel.cpp index 2a2a8860120..983b71f95f8 100644 --- a/src/plugins/ctfvisualizer/ctftimelinemodel.cpp +++ b/src/plugins/ctfvisualizer/ctftimelinemodel.cpp @@ -106,7 +106,7 @@ int CtfTimelineModel::expandedRow(int index) const int CtfTimelineModel::collapsedRow(int index) const { - Q_UNUSED(index); + Q_UNUSED(index) return 0; } diff --git a/src/plugins/debugger/debuggertooltipmanager.cpp b/src/plugins/debugger/debuggertooltipmanager.cpp index 50aaa9453c5..854877d08e0 100644 --- a/src/plugins/debugger/debuggertooltipmanager.cpp +++ b/src/plugins/debugger/debuggertooltipmanager.cpp @@ -90,7 +90,7 @@ public: void onModeChanged(Id mode) { - Q_UNUSED(mode); + Q_UNUSED(mode) // if (mode == Constants::MODE_DEBUG) updateVisibleToolTips(); } diff --git a/src/plugins/docker/dockerdevice.cpp b/src/plugins/docker/dockerdevice.cpp index 9a9e8d8ea82..8c21e50d746 100644 --- a/src/plugins/docker/dockerdevice.cpp +++ b/src/plugins/docker/dockerdevice.cpp @@ -709,9 +709,8 @@ DockerDevice::DockerDevice() setFileAccessFactory([this] { return d->createFileAccess(); }); - setOpenTerminal([this](const Environment &env, - const FilePath &workingDir) -> Result<> { - Q_UNUSED(env); // TODO: That's the runnable's environment in general. Use it via -e below. + setOpenTerminal([this](const Environment &env, const FilePath &workingDir) -> Result<> { + Q_UNUSED(env) // TODO: That's the runnable's environment in general. Use it via -e below. Result<QString> result = d->updateContainerAccess(); diff --git a/src/plugins/extensionmanager/remotespec.cpp b/src/plugins/extensionmanager/remotespec.cpp index fe7294f1928..dfc26ea7477 100644 --- a/src/plugins/extensionmanager/remotespec.cpp +++ b/src/plugins/extensionmanager/remotespec.cpp @@ -45,7 +45,7 @@ ExtensionSystem::IPlugin *RemoteSpec::plugin() const FilePath RemoteSpec::installLocation(bool inUserFolder) const { - Q_UNUSED(inUserFolder); + Q_UNUSED(inUserFolder) return {}; }; diff --git a/src/plugins/help/macwebkithelpviewer.mm b/src/plugins/help/macwebkithelpviewer.mm index c62ee3d7773..5a4f42b1df3 100644 --- a/src/plugins/help/macwebkithelpviewer.mm +++ b/src/plugins/help/macwebkithelpviewer.mm @@ -703,8 +703,8 @@ DOMRange *MacWebKitHelpViewer::findText(NSString *text, bool forward, bool caseS bool MacWebKitHelpViewer::findText(const QString &text, FindFlags flags, bool incremental, bool fromSearch, bool *wrapped) { - Q_UNUSED(incremental); - Q_UNUSED(fromSearch); + Q_UNUSED(incremental) + Q_UNUSED(fromSearch) @autoreleasepool { if (wrapped) *wrapped = false; diff --git a/src/plugins/languageclient/client.cpp b/src/plugins/languageclient/client.cpp index 7ec64e0b688..a07d964db7d 100644 --- a/src/plugins/languageclient/client.cpp +++ b/src/plugins/languageclient/client.cpp @@ -1544,7 +1544,7 @@ void Client::projectClosed(ProjectExplorer::Project *project) bool Client::canOpenProject(ProjectExplorer::Project *project) { - Q_UNUSED(project); + Q_UNUSED(project) return true; } diff --git a/src/plugins/languageclient/languageclientformatter.cpp b/src/plugins/languageclient/languageclientformatter.cpp index 4fc0a792d69..f7bc738778b 100644 --- a/src/plugins/languageclient/languageclientformatter.cpp +++ b/src/plugins/languageclient/languageclientformatter.cpp @@ -196,7 +196,7 @@ FullFormattingRequest::FullFormattingRequest(Client *client, TextEditor::TextDoc IFormattingRequest::RequestType FullFormattingRequest::prepareRequest( const QTextCursor &cursor, const TextEditor::TabSettings &settings, LanguageClientFormatter *formatter) { - Q_UNUSED(cursor); + Q_UNUSED(cursor) if (!canRequest<DocumentFormattingRequest>(m_client, m_document)) return std::monostate(); const FilePath &filePath = m_document->filePath(); diff --git a/src/plugins/mcusupport/test/unittest.cpp b/src/plugins/mcusupport/test/unittest.cpp index f45fd668e6d..dea614bb39e 100644 --- a/src/plugins/mcusupport/test/unittest.cpp +++ b/src/plugins/mcusupport/test/unittest.cpp @@ -731,7 +731,7 @@ void McuSupportTest::test_legacy_createPackagesWithCorrespondingSettings() const McuTargetDescription description = parseDescriptionJson(json.toLocal8Bit()); auto [targets, packages]{ targetsFromDescriptions({description}, settingsMockPtr, sdkPackagePtr, runLegacy)}; - Q_UNUSED(targets); + Q_UNUSED(targets) QSet<Key> settings = transform<QSet<Key>>(packages, [](const auto &package) { return package->settingsKey(); @@ -1008,7 +1008,7 @@ void McuSupportTest::test_legacy_createTargetWithToolchainPackages() const auto [targets, packages]{ targetsFromDescriptions({description}, settingsMockPtr, sdkPackagePtr, runLegacy)}; - Q_UNUSED(packages); + Q_UNUSED(packages) verifyTargetToolchains(targets, toolchainFilePath, @@ -1042,7 +1042,7 @@ void McuSupportTest::test_createTargetWithToolchainPackages() const McuTargetDescription description = parseDescriptionJson(json.toLocal8Bit()); const auto [targets, packages]{ targetsFromDescriptions({description}, settingsMockPtr, sdkPackagePtr, !runLegacy)}; - Q_UNUSED(packages); + Q_UNUSED(packages) const auto qtForMCUsSDK = findOrDefault(packages, [](const McuPackagePtr &pkg) { return (pkg->cmakeVariableName() == QUL_CMAKE_VAR); diff --git a/src/plugins/mesonprojectmanager/buildoptionsmodel.h b/src/plugins/mesonprojectmanager/buildoptionsmodel.h index 223a9a4a623..b1dd02da2c6 100644 --- a/src/plugins/mesonprojectmanager/buildoptionsmodel.h +++ b/src/plugins/mesonprojectmanager/buildoptionsmodel.h @@ -132,7 +132,7 @@ public: }; bool setData(int column, const QVariant &data, int role) final { - Q_UNUSED(role); + Q_UNUSED(role) QTC_ASSERT(column == 1, return false); m_option->setValue(data); return true; diff --git a/src/plugins/mesonprojectmanager/mesonoutputparser.cpp b/src/plugins/mesonprojectmanager/mesonoutputparser.cpp index a156c27d4e9..0b0b6cf5124 100644 --- a/src/plugins/mesonprojectmanager/mesonoutputparser.cpp +++ b/src/plugins/mesonprojectmanager/mesonoutputparser.cpp @@ -25,7 +25,7 @@ inline void MesonOutputParser::addTask(ProjectExplorer::Task task) #ifndef MESONPARSER_DISABLE_TASKS_FOR_TESTS // small hack to allow unit testing without the banana/monkey/jungle ProjectExplorer::TaskHub::addTask(task); #else - Q_UNUSED(task); + Q_UNUSED(task) #endif } @@ -35,8 +35,8 @@ inline void MesonOutputParser::addTask(ProjectExplorer::Task::TaskType type, con auto task = ProjectExplorer::BuildSystemTask(type, QString("Meson build:%1").arg(line)); addTask(task); #else - Q_UNUSED(type); - Q_UNUSED(line); + Q_UNUSED(type) + Q_UNUSED(line) #endif } @@ -57,11 +57,11 @@ inline Utils::OutputLineParser::LinkSpecs MesonOutputParser::addTask( addTask(task); addLinkSpecForAbsoluteFilePath(linkSpecs, task.file, task.line, task.column, match, 1); #else - Q_UNUSED(type); - Q_UNUSED(line); - Q_UNUSED(match); - Q_UNUSED(fileCapIndex); - Q_UNUSED(lineNumberCapIndex); + Q_UNUSED(type) + Q_UNUSED(line) + Q_UNUSED(match) + Q_UNUSED(fileCapIndex) + Q_UNUSED(lineNumberCapIndex) #endif return linkSpecs; } diff --git a/src/plugins/projectexplorer/devicesupport/idevice.cpp b/src/plugins/projectexplorer/devicesupport/idevice.cpp index 5a520e9af20..3dc74366089 100644 --- a/src/plugins/projectexplorer/devicesupport/idevice.cpp +++ b/src/plugins/projectexplorer/devicesupport/idevice.cpp @@ -718,7 +718,7 @@ bool IDevice::ensureReachable(const FilePath &other) const Result<FilePath> IDevice::localSource(const Utils::FilePath &other) const { - Q_UNUSED(other); + Q_UNUSED(other) return make_unexpected(Tr::tr("localSource() not implemented for this device type.")); } diff --git a/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp b/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp index 814a694b06e..e8f7f903aa7 100644 --- a/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp +++ b/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp @@ -156,7 +156,7 @@ void JsonFieldPage::Field::setHasUserChanges() void JsonFieldPage::Field::fromSettings(const QVariant &value) { - Q_UNUSED(value); + Q_UNUSED(value) } QVariant JsonFieldPage::Field::toSettings() const diff --git a/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.h b/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.h index 578d16c711e..6d14157aca0 100644 --- a/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.h +++ b/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.h @@ -72,7 +72,10 @@ public: virtual void initializeData(Utils::MacroExpander *expander) { Q_UNUSED(expander) } virtual QWidget *createWidget(const QString &displayName, JsonFieldPage *page) = 0; virtual void setup(JsonFieldPage *page, const QString &name) - { Q_UNUSED(page); Q_UNUSED(name) } + { + Q_UNUSED(page) + Q_UNUSED(name) + } QString type() const; void setHasUserChanges(); diff --git a/src/plugins/qbsprojectmanager/qbsrequest.cpp b/src/plugins/qbsprojectmanager/qbsrequest.cpp index ac0fadd52f2..07d422ed66e 100644 --- a/src/plugins/qbsprojectmanager/qbsrequest.cpp +++ b/src/plugins/qbsprojectmanager/qbsrequest.cpp @@ -159,7 +159,7 @@ void QbsRequestObject::start() const QStringList &stdOut, const QStringList &stdErr, bool success) { - Q_UNUSED(workingDir); + Q_UNUSED(workingDir) const bool hasOutput = !stdOut.isEmpty() || !stdErr.isEmpty(); if (success && !hasOutput) return; diff --git a/src/plugins/qmldesigner/components/curveeditor/curveeditor.cpp b/src/plugins/qmldesigner/components/curveeditor/curveeditor.cpp index 36ce3373e59..6415e7df1bb 100644 --- a/src/plugins/qmldesigner/components/curveeditor/curveeditor.cpp +++ b/src/plugins/qmldesigner/components/curveeditor/curveeditor.cpp @@ -100,7 +100,7 @@ CurveEditor::CurveEditor(CurveEditorModel *model, QWidget *parent) m_view, &GraphicsView::updateSelection); connect(m_view, &GraphicsView::zoomChanged, [this](double x, double y) { - Q_UNUSED(y); + Q_UNUSED(y) m_toolbar->setZoom(x); }); diff --git a/src/plugins/qmldesigner/components/scripteditor/propertytreemodel.cpp b/src/plugins/qmldesigner/components/scripteditor/propertytreemodel.cpp index b1892c9b557..cb9ddfe9602 100644 --- a/src/plugins/qmldesigner/components/scripteditor/propertytreemodel.cpp +++ b/src/plugins/qmldesigner/components/scripteditor/propertytreemodel.cpp @@ -606,7 +606,7 @@ const std::vector<PropertyName> PropertyTreeModel::sortedAndFilteredPropertyName std::vector<PropertyName> PropertyTreeModel::sortedAndFilteredSignalNames(const NodeMetaInfo &metaInfo, bool recursive) { - Q_UNUSED(recursive); + Q_UNUSED(recursive) auto filtered = Utils::filtered(metaInfo.signalNames(), [](const PropertyName &name) { if (std::find(priorityListSignals.cbegin(), priorityListSignals.cend(), name) @@ -647,7 +647,7 @@ std::vector<PropertyName> PropertyTreeModel::sortedAndFilteredSignalNames(const std::vector<PropertyName> PropertyTreeModel::sortedAndFilteredSlotNames(const NodeMetaInfo &metaInfo, bool recursive) { - Q_UNUSED(recursive); + Q_UNUSED(recursive) auto priorityList = priorityListSlots; auto filtered = Utils::filtered(metaInfo.slotNames(), [priorityList](const PropertyName &name) { diff --git a/src/plugins/qmlprofiler/quick3dframemodel.cpp b/src/plugins/qmlprofiler/quick3dframemodel.cpp index 3a8452c2c0f..5e0a7a75396 100644 --- a/src/plugins/qmlprofiler/quick3dframemodel.cpp +++ b/src/plugins/qmlprofiler/quick3dframemodel.cpp @@ -72,7 +72,7 @@ int Quick3DFrameModel::rowCount(const QModelIndex &parent) const int Quick3DFrameModel::columnCount(const QModelIndex &parent) const { - Q_UNUSED(parent); + Q_UNUSED(parent) return MaxColumnType; } diff --git a/src/plugins/qmlprojectmanager/qmlprojectexporter/pythongenerator.cpp b/src/plugins/qmlprojectmanager/qmlprojectexporter/pythongenerator.cpp index 05012aa60ef..145bce29a2f 100644 --- a/src/plugins/qmlprojectmanager/qmlprojectexporter/pythongenerator.cpp +++ b/src/plugins/qmlprojectmanager/qmlprojectexporter/pythongenerator.cpp @@ -87,8 +87,8 @@ void PythonGenerator::updateProject(QmlProject *project) Regenerates the .qrc resources file */ void PythonGenerator::update(const QSet<QString> &added, const QSet<QString> &removed) { - Q_UNUSED(added); - Q_UNUSED(removed); + Q_UNUSED(added) + Q_UNUSED(removed) ResourceGenerator::createQrc(qmlProject()); // Generated Python code does not need to be updated }; diff --git a/src/plugins/qtsupport/baseqtversion.cpp b/src/plugins/qtsupport/baseqtversion.cpp index 4aa0500e915..832d303d305 100644 --- a/src/plugins/qtsupport/baseqtversion.cpp +++ b/src/plugins/qtsupport/baseqtversion.cpp @@ -1692,7 +1692,7 @@ Environment QtVersion::qmakeRunEnvironment() const void QtVersion::setupQmakeRunEnvironment(Environment &env) const { - Q_UNUSED(env); + Q_UNUSED(env) } bool QtVersion::hasQmlDumpWithRelocatableFlag() const diff --git a/src/plugins/qtsupport/qtoutputformatter.cpp b/src/plugins/qtsupport/qtoutputformatter.cpp index d5a8ce582a0..a87780be6d6 100644 --- a/src/plugins/qtsupport/qtoutputformatter.cpp +++ b/src/plugins/qtsupport/qtoutputformatter.cpp @@ -134,7 +134,7 @@ OutputLineParser::LinkSpec QtOutputLineParser::matchLine(const QString &line) co OutputLineParser::Result QtOutputLineParser::handleLine(const QString &txt, OutputFormat format) { - Q_UNUSED(format); + Q_UNUSED(format) const LinkSpec lr = matchLine(txt); if (!lr.target.isEmpty()) return Result(Status::Done, {lr}); diff --git a/src/plugins/squish/objectsmapdocument.cpp b/src/plugins/squish/objectsmapdocument.cpp index 3475e3ee6f2..53c5cba6e56 100644 --- a/src/plugins/squish/objectsmapdocument.cpp +++ b/src/plugins/squish/objectsmapdocument.cpp @@ -75,7 +75,7 @@ void ObjectsMapDocument::setModified(bool modified) Result<> ObjectsMapDocument::reload(Core::IDocument::ReloadFlag flag, Core::IDocument::ChangeType type) { - Q_UNUSED(type); + Q_UNUSED(type) if (flag == FlagIgnore) return ResultOk; emit aboutToReload(); diff --git a/src/plugins/squish/squishwizardpages.cpp b/src/plugins/squish/squishwizardpages.cpp index ed977b31fd4..15c1b35ecfc 100644 --- a/src/plugins/squish/squishwizardpages.cpp +++ b/src/plugins/squish/squishwizardpages.cpp @@ -281,7 +281,7 @@ public: WizardPage *create(JsonWizard *wizard, Id typeId, const QVariant &data) final { Q_UNUSED(wizard) - Q_UNUSED(data); + Q_UNUSED(data) QTC_ASSERT(canCreate(typeId), return nullptr); return new SquishAUTPage; } diff --git a/src/plugins/terminal/terminalwidget.cpp b/src/plugins/terminal/terminalwidget.cpp index 28104a0d3b2..bc3ec8b44d1 100644 --- a/src/plugins/terminal/terminalwidget.cpp +++ b/src/plugins/terminal/terminalwidget.cpp @@ -584,7 +584,7 @@ void TerminalWidget::dropEvent(QDropEvent *event) void TerminalWidget::showEvent(QShowEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) if (!m_process) setupPty(); diff --git a/src/plugins/texteditor/bookmarkmanager.cpp b/src/plugins/texteditor/bookmarkmanager.cpp index 0d3a9ba8eb0..1dabf80ccd0 100644 --- a/src/plugins/texteditor/bookmarkmanager.cpp +++ b/src/plugins/texteditor/bookmarkmanager.cpp @@ -550,9 +550,9 @@ bool BookmarkManager::canDropMimeData(const QMimeData *data, Qt::DropAction acti 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; @@ -567,7 +567,7 @@ bool BookmarkManager::canDropMimeData(const QMimeData *data, Qt::DropAction acti bool BookmarkManager::dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) { - Q_UNUSED(column); + Q_UNUSED(column) if (!(action & supportedDropActions())) return false; diff --git a/src/plugins/texteditor/codeassist/codeassist_test.cpp b/src/plugins/texteditor/codeassist/codeassist_test.cpp index cd49d6579fc..988a0f3fdac 100644 --- a/src/plugins/texteditor/codeassist/codeassist_test.cpp +++ b/src/plugins/texteditor/codeassist/codeassist_test.cpp @@ -100,7 +100,7 @@ class TestProvider final : public CompletionAssistProvider public: IAssistProcessor *createProcessor(const AssistInterface *assistInterface) const final { - Q_UNUSED(assistInterface); + Q_UNUSED(assistInterface) return new TestProcessor(m_items); } QList<AssistProposalItemInterface *> m_items; diff --git a/src/plugins/texteditor/textindenter.cpp b/src/plugins/texteditor/textindenter.cpp index c2bbce0cfe9..05ae64086f7 100644 --- a/src/plugins/texteditor/textindenter.cpp +++ b/src/plugins/texteditor/textindenter.cpp @@ -131,9 +131,9 @@ void PlainTextIndenter::autoIndent(const QTextCursor &cursor, const TabSettings &tabSettings, int cursorPositionInEditor) { - Q_UNUSED(cursor); - Q_UNUSED(tabSettings); - Q_UNUSED(cursorPositionInEditor); + Q_UNUSED(cursor) + Q_UNUSED(tabSettings) + Q_UNUSED(cursorPositionInEditor) } } // namespace TextEditor diff --git a/src/plugins/texteditor/textsuggestion.cpp b/src/plugins/texteditor/textsuggestion.cpp index 50eb64044a6..b41d3b6c7fd 100644 --- a/src/plugins/texteditor/textsuggestion.cpp +++ b/src/plugins/texteditor/textsuggestion.cpp @@ -49,7 +49,7 @@ bool TextSuggestion::applyLine(TextEditorWidget *widget) bool TextSuggestion::filterSuggestions(TextEditorWidget *widget) { - Q_UNUSED(widget); + Q_UNUSED(widget) QTextCursor c = m_suggestion.range.begin.toTextCursor(sourceDocument()); c.setPosition(currentPosition(), QTextCursor::KeepAnchor); diff --git a/src/plugins/vcsbase/vcsoutputformatter.cpp b/src/plugins/vcsbase/vcsoutputformatter.cpp index 3563e419c2c..1e90c2f0b27 100644 --- a/src/plugins/vcsbase/vcsoutputformatter.cpp +++ b/src/plugins/vcsbase/vcsoutputformatter.cpp @@ -34,7 +34,7 @@ VcsOutputLineParser::VcsOutputLineParser() : OutputLineParser::Result VcsOutputLineParser::handleLine(const QString &text, OutputFormat format) { - Q_UNUSED(format); + Q_UNUSED(format) QRegularExpressionMatchIterator it = m_regexp.globalMatch(text); if (!it.hasNext()) return Status::NotHandled; |