forked from qt-creator/qt-creator
ModelManagerSupport: Get rid of UsagesCallback from globalRename()
It's not used currently. Change-Id: Id859251f69abf33de3431d1e8b561aedefbb4651 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -810,14 +810,7 @@ void CppEditorWidget::renameUsages(const QString &replacement, QTextCursor curso
|
||||
CursorInEditor cursorInEditor{cursor, textDocument()->filePath(), this,
|
||||
textDocument()};
|
||||
QPointer<CppEditorWidget> cppEditorWidget = this;
|
||||
d->m_modelManager->globalRename(cursorInEditor,
|
||||
[=](const Usages &usages) {
|
||||
if (!cppEditorWidget)
|
||||
return;
|
||||
findRenameCallback(cppEditorWidget.data(), cursor, usages,
|
||||
true, replacement);
|
||||
},
|
||||
replacement);
|
||||
d->m_modelManager->globalRename(cursorInEditor, replacement);
|
||||
}
|
||||
|
||||
bool CppEditorWidget::selectBlockUp()
|
||||
|
||||
Reference in New Issue
Block a user