From c6a56cce28807d84e1ba01925061ec301e79440c Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Fri, 7 Aug 2020 16:52:37 +0200 Subject: [PATCH] CppEditor: Do not omit the function return type ... when rewriting an argument of a refactored function. Fixes: QTCREATORBUG-13698 Change-Id: Ifb569a290d3c46944d17a73a19400833e5ba7fe9 Reviewed-by: Christian Stenger --- src/plugins/cppeditor/cppfunctiondecldeflink.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/cppeditor/cppfunctiondecldeflink.cpp b/src/plugins/cppeditor/cppfunctiondecldeflink.cpp index 0582dad58ed..c07b0686427 100644 --- a/src/plugins/cppeditor/cppfunctiondecldeflink.cpp +++ b/src/plugins/cppeditor/cppfunctiondecldeflink.cpp @@ -639,6 +639,7 @@ ChangeSet FunctionDeclDefLink::changes(const Snapshot &snapshot, int targetOffse env.enter(&q); Control *control = sourceContext.bindings()->control().data(); Overview overview = overviewFromCurrentProjectStyle; + overview.showReturnTypes = true; // make a easy to access list of the target parameter declarations QVarLengthArray targetParameterDecls;