From 8f14bc0ea23495dfb1dae7aea1910e470281ee26 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Wed, 10 Aug 2011 09:50:04 +0200 Subject: 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 --- src/plugins/cppeditor/cppquickfixassistant.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins/cppeditor/cppquickfixassistant.cpp') 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 -- cgit v1.2.1