diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2011-08-10 09:50:04 +0200 |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2011-08-16 11:13:12 +0200 |
commit | 8f14bc0ea23495dfb1dae7aea1910e470281ee26 (patch) | |
tree | 9e0580da96ff5010d4c4b17c1ab67a709c917a31 /src/plugins/cppeditor/cppquickfixassistant.cpp | |
parent | 13c8f9eaaae4adf7d4dc92cc6cb1f0d5cd3995b0 (diff) | |
download | qt-creator-8f14bc0ea23495dfb1dae7aea1910e470281ee26.tar.gz |
C++: Synchronize function decl/def refactoring.
When editing a function declaration or definition the code model
may realize the same changes have to be applied somewhere else. A
refactoring marker will pop up that can be clicked to perform the
changes. Alternatively, press enter to apply.
Change-Id: I2299a2ecfb6a8f87d4853fc7cfa99486f890a1d3
Reviewed-on: http://codereview.qt.nokia.com/2909
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
Diffstat (limited to 'src/plugins/cppeditor/cppquickfixassistant.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppquickfixassistant.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/cppquickfixassistant.cpp b/src/plugins/cppeditor/cppquickfixassistant.cpp index 9b998c2db3..dccf0af809 100644 --- a/src/plugins/cppeditor/cppquickfixassistant.cpp +++ b/src/plugins/cppeditor/cppquickfixassistant.cpp @@ -138,7 +138,9 @@ CPPEditorWidget *CppQuickFixAssistInterface::editor() const const CppRefactoringFile CppQuickFixAssistInterface::currentFile() const { - return CppRefactoringFile(m_editor, m_semanticInfo.doc); + CppRefactoringFile file(m_editor); + file.setCppDocument(m_semanticInfo.doc); + return file; } bool CppQuickFixAssistInterface::isCursorOn(unsigned tokenIndex) const |