summaryrefslogtreecommitdiff
path: root/src/plugins/designer/qtcreatorintegration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/designer/qtcreatorintegration.cpp')
-rw-r--r--src/plugins/designer/qtcreatorintegration.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/designer/qtcreatorintegration.cpp b/src/plugins/designer/qtcreatorintegration.cpp
index 8deb0e996f..fb0f964282 100644
--- a/src/plugins/designer/qtcreatorintegration.cpp
+++ b/src/plugins/designer/qtcreatorintegration.cpp
@@ -155,13 +155,10 @@ QString fullyQualifiedName(const LookupContext &context, const Name *name, Scope
return QString();
const QList<LookupItem> items = context.lookup(name, scope);
- if (items.isEmpty()) { // "ui_xxx.h" might not be generated and nothing is forward declared.
+ if (items.isEmpty()) // "ui_xxx.h" might not be generated and nothing is forward declared.
return Overview().prettyName(name);
- } else {
- Symbol *symbol = items.first().declaration();
- return Overview().prettyName(LookupContext::fullyQualifiedName(symbol));
- }
- return QString();
+ Symbol *symbol = items.first().declaration();
+ return Overview().prettyName(LookupContext::fullyQualifiedName(symbol));
}
// Find class definition in namespace (that is, the outer class