From 26fcf2b04ca48566cee6cf32a2a40e8ea1e40eb4 Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Fri, 10 Jul 2020 11:34:39 +0100 Subject: Add override keywords. --- platform/javascript/export/export.cpp | 36 +++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'platform/javascript/export') diff --git a/platform/javascript/export/export.cpp b/platform/javascript/export/export.cpp index 3573ddac95..6a3a977cfb 100644 --- a/platform/javascript/export/export.cpp +++ b/platform/javascript/export/export.cpp @@ -210,35 +210,35 @@ private: static void _server_thread_poll(void *data); public: - virtual void get_preset_features(const Ref &p_preset, List *r_features); + virtual void get_preset_features(const Ref &p_preset, List *r_features) override; - virtual void get_export_options(List *r_options); + virtual void get_export_options(List *r_options) override; - virtual String get_name() const; - virtual String get_os_name() const; - virtual Ref get_logo() const; + virtual String get_name() const override; + virtual String get_os_name() const override; + virtual Ref get_logo() const override; - virtual bool can_export(const Ref &p_preset, String &r_error, bool &r_missing_templates) const; - virtual List get_binary_extensions(const Ref &p_preset) const; - virtual Error export_project(const Ref &p_preset, bool p_debug, const String &p_path, int p_flags = 0); + virtual bool can_export(const Ref &p_preset, String &r_error, bool &r_missing_templates) const override; + virtual List get_binary_extensions(const Ref &p_preset) const override; + virtual Error export_project(const Ref &p_preset, bool p_debug, const String &p_path, int p_flags = 0) override; - virtual bool poll_export(); - virtual int get_options_count() const; - virtual String get_option_label(int p_index) const { return p_index ? TTR("Stop HTTP Server") : TTR("Run in Browser"); } - virtual String get_option_tooltip(int p_index) const { return p_index ? TTR("Stop HTTP Server") : TTR("Run exported HTML in the system's default browser."); } - virtual Ref get_option_icon(int p_index) const; - virtual Error run(const Ref &p_preset, int p_option, int p_debug_flags); - virtual Ref get_run_icon() const; + virtual bool poll_export() override; + virtual int get_options_count() const override; + virtual String get_option_label(int p_index) const override { return p_index ? TTR("Stop HTTP Server") : TTR("Run in Browser"); } + virtual String get_option_tooltip(int p_index) const override { return p_index ? TTR("Stop HTTP Server") : TTR("Run exported HTML in the system's default browser."); } + virtual Ref get_option_icon(int p_index) const override; + virtual Error run(const Ref &p_preset, int p_option, int p_debug_flags) override; + virtual Ref get_run_icon() const override; - virtual void get_platform_features(List *r_features) { + virtual void get_platform_features(List *r_features) override { r_features->push_back("web"); r_features->push_back(get_os_name()); } - virtual void resolve_platform_feature_priorities(const Ref &p_preset, Set &p_features) { + virtual void resolve_platform_feature_priorities(const Ref &p_preset, Set &p_features) override { } - String get_debug_protocol() const { return "ws://"; } + String get_debug_protocol() const override { return "ws://"; } EditorExportPlatformJavaScript(); ~EditorExportPlatformJavaScript(); -- cgit v1.2.3