From a0072ba39fb19158564322ae3f4595512a0c34dc Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Wed, 27 Jul 2022 17:34:12 -0500 Subject: Make some editor export methods const --- platform/uwp/export/export_plugin.cpp | 4 ++-- platform/uwp/export/export_plugin.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'platform/uwp') diff --git a/platform/uwp/export/export_plugin.cpp b/platform/uwp/export/export_plugin.cpp index 19b43d50be..7bf8a0f4c7 100644 --- a/platform/uwp/export/export_plugin.cpp +++ b/platform/uwp/export/export_plugin.cpp @@ -49,7 +49,7 @@ Ref EditorExportPlatformUWP::get_logo() const { return logo; } -void EditorExportPlatformUWP::get_preset_features(const Ref &p_preset, List *r_features) { +void EditorExportPlatformUWP::get_preset_features(const Ref &p_preset, List *r_features) const { r_features->push_back("s3tc"); r_features->push_back("etc"); switch ((int)p_preset->get("architecture/target")) { @@ -494,7 +494,7 @@ Error EditorExportPlatformUWP::export_project(const Ref &p_p return OK; } -void EditorExportPlatformUWP::get_platform_features(List *r_features) { +void EditorExportPlatformUWP::get_platform_features(List *r_features) const { r_features->push_back("pc"); r_features->push_back("uwp"); } diff --git a/platform/uwp/export/export_plugin.h b/platform/uwp/export/export_plugin.h index c1a1f8a935..5c50baf9c3 100644 --- a/platform/uwp/export/export_plugin.h +++ b/platform/uwp/export/export_plugin.h @@ -431,7 +431,7 @@ public: virtual Ref get_logo() const override; - virtual void get_preset_features(const Ref &p_preset, List *r_features) override; + virtual void get_preset_features(const Ref &p_preset, List *r_features) const override; virtual void get_export_options(List *r_options) override; @@ -439,7 +439,7 @@ public: virtual Error export_project(const Ref &p_preset, bool p_debug, const String &p_path, int p_flags = 0) override; - virtual void get_platform_features(List *r_features) override; + virtual void get_platform_features(List *r_features) const override; virtual void resolve_platform_feature_priorities(const Ref &p_preset, HashSet &p_features) override; -- cgit v1.2.3