diff options
Diffstat (limited to 'src/plugins/cpptools/cpprefactoringchanges.cpp')
-rw-r--r-- | src/plugins/cpptools/cpprefactoringchanges.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/cpptools/cpprefactoringchanges.cpp b/src/plugins/cpptools/cpprefactoringchanges.cpp index 929a6ec020..138a5a3693 100644 --- a/src/plugins/cpptools/cpprefactoringchanges.cpp +++ b/src/plugins/cpptools/cpprefactoringchanges.cpp @@ -56,8 +56,8 @@ public: const TextEditor::TabSettings &tabSettings = ProjectExplorer::actualTabSettings(fileName, textDocument); - CppQtStyleIndenter indenter; - indenter.indent(selection.document(), selection, QChar::Null, tabSettings); + CppQtStyleIndenter indenter(selection.document()); + indenter.indent(selection, QChar::Null, tabSettings); } void reindentSelection(const QTextCursor &selection, @@ -67,8 +67,9 @@ public: const TextEditor::TabSettings &tabSettings = ProjectExplorer::actualTabSettings(fileName, textDocument); - CppQtStyleIndenter indenter; - indenter.reindent(selection.document(), selection, tabSettings); + CppQtStyleIndenter indenter(selection.document()); + indenter.reindent(selection, + tabSettings); } void fileChanged(const QString &fileName) override |