From 853df176ed3e1159e3bd74d93585da8b3c72b330 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 17 Oct 2019 22:15:22 -0400 Subject: [PATCH] MkCastTo: Use override where applicable Generates the derived classes with the override specifier to prevent warnings. --- Runtime/MkCastTo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/MkCastTo.py b/Runtime/MkCastTo.py index 9c7d7e45e..97c114642 100644 --- a/Runtime/MkCastTo.py +++ b/Runtime/MkCastTo.py @@ -125,7 +125,7 @@ public: for tp in CENTITY_TYPES: if type(tp) == tuple: - headerf.write(' void Visit(%s* p);\n' % getqualified(tp)) + headerf.write(' void Visit(%s* p) override;\n' % getqualified(tp)) headerf.write(''' T* GetPtr() const { return ptr; }