summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cppinsertdecldef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cppeditor/cppinsertdecldef.cpp')
-rw-r--r--src/plugins/cppeditor/cppinsertdecldef.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/cppinsertdecldef.cpp b/src/plugins/cppeditor/cppinsertdecldef.cpp
index 1410520e74..16a0bd13dc 100644
--- a/src/plugins/cppeditor/cppinsertdecldef.cpp
+++ b/src/plugins/cppeditor/cppinsertdecldef.cpp
@@ -212,7 +212,7 @@ QString InsertDeclOperation::generateDeclaration(Function *function)
oo.showArgumentNames = true;
QString decl;
- decl += oo(function->type(), function->unqualifiedName());
+ decl += oo.prettyType(function->type(), function->unqualifiedName());
decl += QLatin1String(";\n");
return decl;
@@ -271,7 +271,7 @@ public:
FullySpecifiedType tn = rewriteType(m_decl->type(), &env, control);
// rewrite the function name
- QString name = oo(LookupContext::minimalName(m_decl, targetCoN, control));
+ QString name = oo.prettyName(LookupContext::minimalName(m_decl, targetCoN, control));
QString defText = oo.prettyType(tn, name) + QLatin1String("\n{\n}");