C++: insert definition from declaration for pure virtual functions

Change-Id: I7fd9e88061e2854a8b18b9853ef71436921db062
Reviewed-by: Erik Verbruggen <erik.verbruggen@nokia.com>
This commit is contained in:
Bojan Petrovic
2012-01-25 11:44:20 +01:00
committed by Leandro Melo
parent 6d85b53f9c
commit 8517c14316

View File

@@ -309,7 +309,6 @@ QList<CppQuickFixOperation::Ptr> DefFromDecl::match(
if (Symbol *symbol = simpleDecl->symbols->value) { if (Symbol *symbol = simpleDecl->symbols->value) {
if (Declaration *decl = symbol->asDeclaration()) { if (Declaration *decl = symbol->asDeclaration()) {
if (decl->type()->isFunctionType() if (decl->type()->isFunctionType()
&& !decl->type()->asFunctionType()->isPureVirtual()
&& decl->enclosingScope() && decl->enclosingScope()
&& decl->enclosingScope()->isClass()) { && decl->enclosingScope()->isClass()) {
CppRefactoringChanges refactoring(interface->snapshot()); CppRefactoringChanges refactoring(interface->snapshot());