forked from qt-creator/qt-creator
Core: Turn LocatorFilterEntry ofn ILocatorFilter::accept to const &
In ILocatorFilter::accept and all the overrides. Change-Id: I27cd6babb66d91aad57e85572a1cdc77aef4fd79 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -218,7 +218,7 @@ QList<Core::LocatorFilterEntry> DocumentLocatorFilter::matchesFor(
|
||||
return {};
|
||||
}
|
||||
|
||||
void DocumentLocatorFilter::accept(Core::LocatorFilterEntry selection,
|
||||
void DocumentLocatorFilter::accept(const Core::LocatorFilterEntry &selection,
|
||||
QString * /*newText*/,
|
||||
int * /*selectionStart*/,
|
||||
int * /*selectionLength*/) const
|
||||
@@ -325,7 +325,7 @@ QList<Core::LocatorFilterEntry> WorkspaceLocatorFilter::matchesFor(
|
||||
.toList();
|
||||
}
|
||||
|
||||
void WorkspaceLocatorFilter::accept(Core::LocatorFilterEntry selection,
|
||||
void WorkspaceLocatorFilter::accept(const Core::LocatorFilterEntry &selection,
|
||||
QString * /*newText*/,
|
||||
int * /*selectionStart*/,
|
||||
int * /*selectionLength*/) const
|
||||
|
||||
@@ -49,7 +49,7 @@ public:
|
||||
void prepareSearch(const QString &entry) override;
|
||||
QList<Core::LocatorFilterEntry> matchesFor(QFutureInterface<Core::LocatorFilterEntry> &future,
|
||||
const QString &entry) override;
|
||||
void accept(Core::LocatorFilterEntry selection,
|
||||
void accept(const Core::LocatorFilterEntry &selection,
|
||||
QString *newText,
|
||||
int *selectionStart,
|
||||
int *selectionLength) const override;
|
||||
@@ -103,7 +103,7 @@ public:
|
||||
void prepareSearch(const QString &entry, const QVector<Client *> &clients);
|
||||
QList<Core::LocatorFilterEntry> matchesFor(QFutureInterface<Core::LocatorFilterEntry> &future,
|
||||
const QString &entry) override;
|
||||
void accept(Core::LocatorFilterEntry selection,
|
||||
void accept(const Core::LocatorFilterEntry &selection,
|
||||
QString *newText,
|
||||
int *selectionStart,
|
||||
int *selectionLength) const override;
|
||||
|
||||
Reference in New Issue
Block a user