Index: tools/clang/blink_gc_plugin/tests/class_requires_finalization_mixin.h |
diff --git a/tools/clang/blink_gc_plugin/tests/class_requires_finalization_mixin.h b/tools/clang/blink_gc_plugin/tests/class_requires_finalization_mixin.h |
index d56a57ea6c543ae4d15f57c135c1cc0e1e8d0f93..929785d7ad04fe23a62afcf67f5d3bd145e950a5 100644 |
--- a/tools/clang/blink_gc_plugin/tests/class_requires_finalization_mixin.h |
+++ b/tools/clang/blink_gc_plugin/tests/class_requires_finalization_mixin.h |
@@ -14,7 +14,7 @@ class OnHeap : public GarbageCollected<OnHeap> { }; |
class MixinFinalizable : public GarbageCollectedMixin { |
public: |
- void trace(Visitor*); |
+ virtual void trace(Visitor*) override; |
private: |
RefPtr<OffHeap> m_offHeap; // Requires finalization |
Member<OnHeap> m_onHeap; |
@@ -22,7 +22,7 @@ private: |
class MixinNotFinalizable : public GarbageCollectedMixin { |
public: |
- void trace(Visitor*); |
+ virtual void trace(Visitor*) override; |
private: |
Member<OnHeap> m_onHeap; |
}; |
@@ -32,7 +32,7 @@ class NeedsFinalizer |
, public MixinFinalizable { |
USING_GARBAGE_COLLECTED_MIXIN(NeedsFinalizer); |
public: |
- void trace(Visitor*); |
+ virtual void trace(Visitor*) override; |
private: |
Member<OnHeap> m_obj; |
}; |
@@ -41,7 +41,7 @@ class HasFinalizer : public GarbageCollectedFinalized<HasFinalizer>, |
public MixinFinalizable { |
USING_GARBAGE_COLLECTED_MIXIN(HasFinalizer); |
public: |
- void trace(Visitor*); |
+ virtual void trace(Visitor*) override; |
private: |
Member<OnHeap> m_obj; |
}; |
@@ -52,7 +52,7 @@ class NeedsNoFinalization |
, public ScriptWrappable { |
USING_GARBAGE_COLLECTED_MIXIN(NeedsNoFinalization); |
public: |
- void trace(Visitor*); |
+ virtual void trace(Visitor*) override; |
private: |
Member<OnHeap> m_obj; |
}; |