forked from qt-creator/qt-creator
Do not pass Utils::LinkHandler by rvalue ref
There is nothing special about this type that justifies it sticking out everywhere it appears. Change-Id: Iccdc95163d477db8a031d0d520f28fea26432a44 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -456,7 +456,7 @@ void LanguageClientManager::editorOpened(Core::IEditor *editor)
|
||||
if (TextEditorWidget *widget = textEditor->editorWidget()) {
|
||||
connect(widget, &TextEditorWidget::requestLinkAt, this,
|
||||
[document = textEditor->textDocument()]
|
||||
(const QTextCursor &cursor, Utils::LinkHandler &callback, bool resolveTarget) {
|
||||
(const QTextCursor &cursor, const Utils::LinkHandler &callback, bool resolveTarget) {
|
||||
if (auto client = clientForDocument(document))
|
||||
client->symbolSupport().findLinkAt(document, cursor, callback, resolveTarget);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user