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/ios/export/export_plugin.cpp | 6 +++--- platform/ios/export/export_plugin.h | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'platform/ios/export') diff --git a/platform/ios/export/export_plugin.cpp b/platform/ios/export/export_plugin.cpp index a2e80d33fd..85e8621aa0 100644 --- a/platform/ios/export/export_plugin.cpp +++ b/platform/ios/export/export_plugin.cpp @@ -32,7 +32,7 @@ #include "editor/editor_node.h" -void EditorExportPlatformIOS::get_preset_features(const Ref &p_preset, List *r_features) { +void EditorExportPlatformIOS::get_preset_features(const Ref &p_preset, List *r_features) const { String driver = ProjectSettings::get_singleton()->get("rendering/driver/driver_name"); // Vulkan and OpenGL ES 3.0 both mandate ETC2 support. r_features->push_back("etc2"); @@ -43,7 +43,7 @@ void EditorExportPlatformIOS::get_preset_features(const Ref } } -Vector EditorExportPlatformIOS::_get_supported_architectures() { +Vector EditorExportPlatformIOS::_get_supported_architectures() const { Vector archs; archs.push_back(ExportArchitecture("arm64", true)); return archs; @@ -1155,7 +1155,7 @@ Error EditorExportPlatformIOS::_export_additional_assets(const String &p_out_dir return OK; } -Vector EditorExportPlatformIOS::_get_preset_architectures(const Ref &p_preset) { +Vector EditorExportPlatformIOS::_get_preset_architectures(const Ref &p_preset) const { Vector all_archs = _get_supported_architectures(); Vector enabled_archs; for (int i = 0; i < all_archs.size(); ++i) { diff --git a/platform/ios/export/export_plugin.h b/platform/ios/export/export_plugin.h index ce470bba78..07e30c1d00 100644 --- a/platform/ios/export/export_plugin.h +++ b/platform/ios/export/export_plugin.h @@ -106,8 +106,8 @@ class EditorExportPlatformIOS : public EditorExportPlatform { Error _export_loading_screen_file(const Ref &p_preset, const String &p_dest_dir); Error _export_icons(const Ref &p_preset, const String &p_iconset_dir); - Vector _get_supported_architectures(); - Vector _get_preset_architectures(const Ref &p_preset); + Vector _get_supported_architectures() const; + Vector _get_preset_architectures(const Ref &p_preset) const; void _add_assets_to_project(const Ref &p_preset, Vector &p_project_data, const Vector &p_additional_assets); Error _export_additional_assets(const String &p_out_dir, const Vector &p_assets, bool p_is_framework, bool p_should_embed, Vector &r_exported_assets); @@ -173,7 +173,7 @@ class EditorExportPlatformIOS : public EditorExportPlatform { } protected: - 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; public: @@ -199,7 +199,7 @@ public: virtual bool can_export(const Ref &p_preset, String &r_error, bool &r_missing_templates) const override; - virtual void get_platform_features(List *r_features) override { + virtual void get_platform_features(List *r_features) const override { r_features->push_back("mobile"); r_features->push_back("ios"); } -- cgit v1.2.3