forked from qt-creator/qt-creator
QuickFix: Don't separate createChanges from perform.
This will allow a more efficient and direct implementation.
This commit is contained in:
@@ -82,7 +82,7 @@ public:
|
||||
"CppEditor::DeclFromDef").arg(type));
|
||||
}
|
||||
|
||||
void createChanges()
|
||||
void perform()
|
||||
{
|
||||
CppRefactoringChanges *changes = refactoringChanges();
|
||||
|
||||
@@ -101,6 +101,7 @@ public:
|
||||
targetFile.indent(Utils::ChangeSet::Range(targetPosition2, targetPosition1));
|
||||
|
||||
changes->setActiveEditor(m_targetFileName, targetPosition1);
|
||||
changes->apply();
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user