Commit a06c5ef1 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

CppEditor: Cleanup quickfixes

Change-Id: I19fb785372291f66b756cf5be1fc941870c304c3
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent d36cb8b4
...@@ -158,10 +158,8 @@ InsertionLocation insertLocationForMethodDefinition(Symbol *symbol, const bool u ...@@ -158,10 +158,8 @@ InsertionLocation insertLocationForMethodDefinition(Symbol *symbol, const bool u
= locator.methodDefinition(symbol, useSymbolFinder, fileName); = locator.methodDefinition(symbol, useSymbolFinder, fileName);
for (int i = 0; i < list.count(); ++i) { for (int i = 0; i < list.count(); ++i) {
InsertionLocation location = list.at(i); InsertionLocation location = list.at(i);
if (location.isValid() && location.fileName() == fileName) { if (location.isValid() && location.fileName() == fileName)
return location; return location;
break;
}
} }
// ...failed, // ...failed,
...@@ -4769,11 +4767,11 @@ public: ...@@ -4769,11 +4767,11 @@ public:
? Qt::Checked : Qt::Unchecked; ? Qt::Checked : Qt::Unchecked;
for (Scope::iterator it = clazz->firstMember(); it != clazz->lastMember(); ++it) { for (Scope::iterator it = clazz->firstMember(); it != clazz->lastMember(); ++it) {
if (const Function *func = (*it)->type()->asFunctionType()) { if (const Function *func = (*it)->type()->asFunctionType()) {
if (!func->isVirtual()) // Filter virtual destructors
if (func->name()->asDestructorNameId())
continue; continue;
// Filter virtual destructors if (!func->isVirtual())
if (printer.prettyName(func->name()).startsWith(QLatin1Char('~')))
continue; continue;
// Filter OQbject's // Filter OQbject's
...@@ -4917,16 +4915,12 @@ public: ...@@ -4917,16 +4915,12 @@ public:
switch (spec) { switch (spec) {
case InsertionPointLocator::Private: case InsertionPointLocator::Private:
return InsertionPointLocator::PrivateSlot; return InsertionPointLocator::PrivateSlot;
break;
case InsertionPointLocator::Protected: case InsertionPointLocator::Protected:
return InsertionPointLocator::ProtectedSlot; return InsertionPointLocator::ProtectedSlot;
break;
case InsertionPointLocator::Public: case InsertionPointLocator::Public:
return InsertionPointLocator::PublicSlot; return InsertionPointLocator::PublicSlot;
break;
default: default:
return spec; return spec;
break;
} }
} }
return spec; return spec;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment