diff --git a/src/plugins/coreplugin/locator/opendocumentsfilter.cpp b/src/plugins/coreplugin/locator/opendocumentsfilter.cpp index 2a636b51c42..f3d14cdb089 100644 --- a/src/plugins/coreplugin/locator/opendocumentsfilter.cpp +++ b/src/plugins/coreplugin/locator/opendocumentsfilter.cpp @@ -91,7 +91,7 @@ QList OpenDocumentsFilter::matchesFor(QFutureInterface documentEntries = DocumentModel::entries(); for (DocumentModel::Entry *e : documentEntries) { @@ -106,7 +106,7 @@ void OpenDocumentsFilter::refreshInternally() QList OpenDocumentsFilter::editors() const { - QMutexLocker lock(&m_mutex); Q_UNUSED(lock) + QMutexLocker lock(&m_mutex); return m_editors; } diff --git a/src/plugins/coreplugin/locator/urllocatorfilter.cpp b/src/plugins/coreplugin/locator/urllocatorfilter.cpp index b16ee40d0ee..2e58cde291e 100644 --- a/src/plugins/coreplugin/locator/urllocatorfilter.cpp +++ b/src/plugins/coreplugin/locator/urllocatorfilter.cpp @@ -228,7 +228,7 @@ bool UrlLocatorFilter::openConfigDialog(QWidget *parent, bool &needsRefresh) Q_UNUSED(needsRefresh) Internal::UrlFilterOptions optionsDialog(this, parent); if (optionsDialog.exec() == QDialog::Accepted) { - QMutexLocker lock(&m_mutex); Q_UNUSED(lock) + QMutexLocker lock(&m_mutex); m_remoteUrls.clear(); setIncludedByDefault(optionsDialog.m_ui.includeByDefault->isChecked()); setShortcutString(optionsDialog.m_ui.shortcutEdit->text().trimmed()); @@ -250,7 +250,6 @@ void UrlLocatorFilter::addDefaultUrl(const QString &urlTemplate) QStringList UrlLocatorFilter::remoteUrls() const { QMutexLocker lock(&m_mutex); - Q_UNUSED(lock) return m_remoteUrls; }