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:
@@ -60,7 +60,7 @@ NimTextEditorWidget::NimTextEditorWidget(QWidget *parent)
|
||||
setLanguageSettingsId(Nim::Constants::C_NIMLANGUAGE_ID);
|
||||
}
|
||||
|
||||
void NimTextEditorWidget::findLinkAt(const QTextCursor &c, Utils::LinkHandler &&processLinkCallback, bool /*resolveTarget*/, bool /*inNextSplit*/)
|
||||
void NimTextEditorWidget::findLinkAt(const QTextCursor &c, const Utils::LinkHandler &processLinkCallback, bool /*resolveTarget*/, bool /*inNextSplit*/)
|
||||
{
|
||||
const Utils::FilePath &path = textDocument()->filePath();
|
||||
|
||||
@@ -90,7 +90,7 @@ void NimTextEditorWidget::findLinkAt(const QTextCursor &c, Utils::LinkHandler &&
|
||||
m_callback(Utils::Link());
|
||||
|
||||
m_dirtyFile = std::move(dirtyFile);
|
||||
m_callback = std::move(processLinkCallback);
|
||||
m_callback = processLinkCallback;
|
||||
m_request = std::move(request);
|
||||
|
||||
QObject::connect(m_request.get(), &NimSuggestClientRequest::finished, this, &NimTextEditorWidget::onFindLinkFinished);
|
||||
|
||||
Reference in New Issue
Block a user