summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cppfunctiondecldeflink.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2020-08-07 16:52:37 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2020-08-10 12:07:54 +0000
commitc6a56cce28807d84e1ba01925061ec301e79440c (patch)
tree579e8bc41862cbae984c59916e9f0c02c9db8734 /src/plugins/cppeditor/cppfunctiondecldeflink.cpp
parentd9eb3dc5a445e79f679b69a7ed96e360c582d6ef (diff)
downloadqt-creator-c6a56cce28807d84e1ba01925061ec301e79440c.tar.gz
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 <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppfunctiondecldeflink.cpp')
-rw-r--r--src/plugins/cppeditor/cppfunctiondecldeflink.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cppeditor/cppfunctiondecldeflink.cpp b/src/plugins/cppeditor/cppfunctiondecldeflink.cpp
index 0582dad58e..c07b068642 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<ParameterDeclarationAST *, 10> targetParameterDecls;