Add override keyword in tests to silence compiler warnings

Pick-to: 6.1
Change-Id: I1a1d0390ddbb2549d636987dd155fcb90a2687db
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
Volker Hilsheimer 2021-03-17 12:03:19 +01:00
parent 0a33baf8eb
commit d24244e4ab
1 changed files with 3 additions and 3 deletions

View File

@ -93,19 +93,19 @@ public:
}
}
virtual bool preVisit(AST::Node *node)
bool preVisit(AST::Node *node) override
{
checkNode(node);
nodeStack.append(node);
return true;
}
virtual void postVisit(AST::Node *)
void postVisit(AST::Node *) override
{
nodeStack.removeLast();
}
void throwRecursionDepthError()
void throwRecursionDepthError() override
{
QFAIL("Maximum statement or expression depth exceeded");
}