From 9fef4fb9ca4e65e20ff13b98bcf15e3c6232fdfb Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Thu, 30 Apr 2015 15:41:22 +0200 Subject: [PATCH] CPlusPlus: Fix warnings about overriding visit(...) methods Change-Id: I142b6c7b6573518dbd44557f3a66c5d683bb592d Reviewed-by: Orgad Shaneh --- src/libs/cplusplus/LookupContext.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libs/cplusplus/LookupContext.cpp b/src/libs/cplusplus/LookupContext.cpp index 7dd409a5cc8..41d6d8618a3 100644 --- a/src/libs/cplusplus/LookupContext.cpp +++ b/src/libs/cplusplus/LookupContext.cpp @@ -626,6 +626,9 @@ private: bool found() const { return _found; } private: + using TypeVisitor::visit; + using NameVisitor::visit; + void visit(PointerType *type) override { accept(type->elementType().type()); } void visit(ReferenceType *type) override { accept(type->elementType().type()); } void visit(NamedType *type) override { accept(type->name()); }