QuickFix: Don't separate createChanges from perform.

This will allow a more efficient and direct implementation.
This commit is contained in:
Christian Kamm
2010-08-12 11:41:15 +02:00
parent 235f4d1d26
commit ca5076e5ae
6 changed files with 39 additions and 31 deletions

View File

@@ -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: