summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cppcompleteswitch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cppeditor/cppcompleteswitch.cpp')
-rw-r--r--src/plugins/cppeditor/cppcompleteswitch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/cppcompleteswitch.cpp b/src/plugins/cppeditor/cppcompleteswitch.cpp
index 554e3faba7..76833afbc8 100644
--- a/src/plugins/cppeditor/cppcompleteswitch.cpp
+++ b/src/plugins/cppeditor/cppcompleteswitch.cpp
@@ -79,7 +79,7 @@ public:
scope);
if (!candidates .isEmpty() && candidates.first().declaration()) {
Symbol *decl = candidates.first().declaration();
- values << prettyPrint(LookupContext::fullyQualifiedName(decl));
+ values << prettyPrint.prettyName(LookupContext::fullyQualifiedName(decl));
}
}
return true;
@@ -194,7 +194,7 @@ QList<CppQuickFixOperation::Ptr> CompleteSwitchCaseStatement::match(
Overview prettyPrint;
for (unsigned i = 0; i < e->memberCount(); ++i) {
if (Declaration *decl = e->memberAt(i)->asDeclaration()) {
- values << prettyPrint(LookupContext::fullyQualifiedName(decl));
+ values << prettyPrint.prettyName(LookupContext::fullyQualifiedName(decl));
}
}
// Get the used values