@@ -76,7 +76,7 @@ class SourceModuleNode : public runtime::ModuleNode {
7676
7777 std::string GetSource (const std::string& format) final { return code_; }
7878
79- std::string GetFormat () { return fmt_; }
79+ std::string GetFormat () override { return fmt_; }
8080
8181 protected:
8282 std::string code_;
@@ -117,7 +117,7 @@ class CSourceModuleNode : public runtime::ModuleNode {
117117
118118 std::string GetSource (const std::string& format) final { return code_; }
119119
120- std::string GetFormat () { return fmt_; }
120+ std::string GetFormat () override { return fmt_; }
121121
122122 void SaveToFile (const std::string& file_name, const std::string& format) final {
123123 std::string fmt = GetFileFormat (file_name, format);
@@ -130,7 +130,7 @@ class CSourceModuleNode : public runtime::ModuleNode {
130130 }
131131 }
132132
133- int GetPropertyMask () const { return runtime::ModulePropertyMask::kDSOExportable ; }
133+ int GetPropertyMask () const override { return runtime::ModulePropertyMask::kDSOExportable ; }
134134
135135 bool ImplementsFunction (const String& name, bool query_imports) final {
136136 return std::find (func_names_.begin (), func_names_.end (), name) != func_names_.end ();
@@ -183,7 +183,7 @@ class CSourceCrtMetadataModuleNode : public runtime::ModuleNode {
183183
184184 std::string GetSource (const std::string& format) final { return code_.str (); }
185185
186- std::string GetFormat () { return fmt_; }
186+ std::string GetFormat () override { return fmt_; }
187187 PackedFunc GetFunction (const std::string& name, const ObjectPtr<Object>& sptr_to_self) final {
188188 return PackedFunc ();
189189 }
@@ -200,7 +200,7 @@ class CSourceCrtMetadataModuleNode : public runtime::ModuleNode {
200200 }
201201 }
202202
203- int GetPropertyMask () const { return runtime::ModulePropertyMask::kDSOExportable ; }
203+ int GetPropertyMask () const override { return runtime::ModulePropertyMask::kDSOExportable ; }
204204
205205 bool ImplementsFunction (const String& name, bool query_imports) final {
206206 return std::find (func_names_.begin (), func_names_.end (), name) != func_names_.end ();
0 commit comments