summaryrefslogtreecommitdiff
path: root/src/libs/cplusplus/LookupContext.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2015-04-30 15:41:22 +0200
committerTobias Hunger <tobias.hunger@theqtcompany.com>2015-05-04 08:22:43 +0000
commit9fef4fb9ca4e65e20ff13b98bcf15e3c6232fdfb (patch)
treef9cd32d1c5f4c186b0d774eb3ec284466491eb03 /src/libs/cplusplus/LookupContext.cpp
parent766b222d8f92dc34cd617c90b594d018b8dc0788 (diff)
downloadqt-creator-9fef4fb9ca4e65e20ff13b98bcf15e3c6232fdfb.tar.gz
CPlusPlus: Fix warnings about overriding visit(...) methods
Change-Id: I142b6c7b6573518dbd44557f3a66c5d683bb592d Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/libs/cplusplus/LookupContext.cpp')
-rw-r--r--src/libs/cplusplus/LookupContext.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libs/cplusplus/LookupContext.cpp b/src/libs/cplusplus/LookupContext.cpp
index 7dd409a5cc..41d6d8618a 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()); }