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/android/export/export.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'platform/android/export') diff --git a/platform/android/export/export.cpp b/platform/android/export/export.cpp index 10fafd07e1..71d05bd732 100644 --- a/platform/android/export/export.cpp +++ b/platform/android/export/export.cpp @@ -1444,7 +1444,7 @@ public: typedef Error (*EditorExportSaveFunction)(void *p_userdata, const String &p_path, const Vector &p_data, int p_file, int p_total); 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 { String driver = ProjectSettings::get_singleton()->get("rendering/quality/driver/driver_name"); if (driver == "GLES2") { r_features->push_back("etc"); @@ -1460,7 +1460,7 @@ public: } } - virtual void get_export_options(List *r_options) { + virtual void get_export_options(List *r_options) override { r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "graphics/32_bits_framebuffer"), true)); r_options->push_back(ExportOption(PropertyInfo(Variant::INT, "xr_features/xr_mode", PROPERTY_HINT_ENUM, "Regular,Oculus Mobile VR"), 0)); r_options->push_back(ExportOption(PropertyInfo(Variant::INT, "xr_features/degrees_of_freedom", PROPERTY_HINT_ENUM, "None,3DOF and 6DOF,6DOF"), 0)); @@ -1520,19 +1520,19 @@ public: } } - virtual String get_name() const { + virtual String get_name() const override { return "Android"; } - virtual String get_os_name() const { + virtual String get_os_name() const override { return "Android"; } - virtual Ref get_logo() const { + virtual Ref get_logo() const override { return logo; } - virtual bool should_update_export_options() { + virtual bool should_update_export_options() override { bool export_options_changed = plugins_changed; if (export_options_changed) { // don't clear unless we're reporting true, to avoid race @@ -1541,7 +1541,7 @@ public: return export_options_changed; } - virtual bool poll_export() { + virtual bool poll_export() override { bool dc = devices_changed; if (dc) { // don't clear unless we're reporting true, to avoid race @@ -1550,22 +1550,22 @@ public: return dc; } - virtual int get_options_count() const { + virtual int get_options_count() const override { MutexLock lock(device_lock); return devices.size(); } - virtual String get_options_tooltip() const { + virtual String get_options_tooltip() const override { return TTR("Select device from the list"); } - virtual String get_option_label(int p_index) const { + virtual String get_option_label(int p_index) const override { ERR_FAIL_INDEX_V(p_index, devices.size(), ""); MutexLock lock(device_lock); return devices[p_index].name; } - virtual String get_option_tooltip(int p_index) const { + virtual String get_option_tooltip(int p_index) const override { ERR_FAIL_INDEX_V(p_index, devices.size(), ""); MutexLock lock(device_lock); String s = devices[p_index].description; @@ -1578,7 +1578,7 @@ public: return s; } - virtual Error run(const Ref &p_preset, int p_device, int p_debug_flags) { + virtual Error run(const Ref &p_preset, int p_device, int p_debug_flags) override { ERR_FAIL_INDEX_V(p_device, devices.size(), ERR_INVALID_PARAMETER); String can_export_error; @@ -1735,11 +1735,11 @@ public: #undef CLEANUP_AND_RETURN } - virtual Ref get_run_icon() const { + virtual Ref get_run_icon() const override { return run_icon; } - virtual bool can_export(const Ref &p_preset, String &r_error, bool &r_missing_templates) const { + virtual bool can_export(const Ref &p_preset, String &r_error, bool &r_missing_templates) const override { String err; bool valid = false; @@ -1894,7 +1894,7 @@ public: return valid; } - virtual List get_binary_extensions(const Ref &p_preset) const { + virtual List get_binary_extensions(const Ref &p_preset) const override { List list; list.push_back("apk"); return list; @@ -1996,7 +1996,7 @@ public: return OK; } - virtual Error export_project(const Ref &p_preset, bool p_debug, const String &p_path, int p_flags = 0) { + virtual Error export_project(const Ref &p_preset, bool p_debug, const String &p_path, int p_flags = 0) override { ExportNotifier notifier(*this, p_preset, p_debug, p_path, p_flags); String src_apk; @@ -2478,12 +2478,12 @@ public: CLEANUP_AND_RETURN(OK); } - virtual void get_platform_features(List *r_features) { + virtual void get_platform_features(List *r_features) override { r_features->push_back("mobile"); r_features->push_back("Android"); } - 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 { } EditorExportPlatformAndroid() { -- cgit v1.2.3