mirror of https://github.com/qt/qtdoc.git
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:
parent
0a33baf8eb
commit
d24244e4ab
|
@ -93,19 +93,19 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool preVisit(AST::Node *node)
|
bool preVisit(AST::Node *node) override
|
||||||
{
|
{
|
||||||
checkNode(node);
|
checkNode(node);
|
||||||
nodeStack.append(node);
|
nodeStack.append(node);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void postVisit(AST::Node *)
|
void postVisit(AST::Node *) override
|
||||||
{
|
{
|
||||||
nodeStack.removeLast();
|
nodeStack.removeLast();
|
||||||
}
|
}
|
||||||
|
|
||||||
void throwRecursionDepthError()
|
void throwRecursionDepthError() override
|
||||||
{
|
{
|
||||||
QFAIL("Maximum statement or expression depth exceeded");
|
QFAIL("Maximum statement or expression depth exceeded");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue