summaryrefslogtreecommitdiffstats
path: root/editor/export/editor_export_plugin.cpp
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-07-26 11:52:26 +0200
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-08-31 15:01:09 +0200
commit194bdde94787227e8f53a4e3273c192ab70b03ac (patch)
treec5e9d87fae1c8eb2af98ab34d687bd8c5a4a18d5 /editor/export/editor_export_plugin.cpp
parent61598c5c88d95b96811d386cb20d714c35f4c6d7 (diff)
downloadredot-engine-194bdde94787227e8f53a4e3273c192ab70b03ac.tar.gz
Cleanup of raw `nullptr` checks with `Ref`
Using `is_valid/null` over checks with `nullptr` or `ERR_FAIL_NULL` etc.
Diffstat (limited to 'editor/export/editor_export_plugin.cpp')
-rw-r--r--editor/export/editor_export_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/export/editor_export_plugin.cpp b/editor/export/editor_export_plugin.cpp
index f56dd61e3b..6bb21d7fd4 100644
--- a/editor/export/editor_export_plugin.cpp
+++ b/editor/export/editor_export_plugin.cpp
@@ -140,7 +140,7 @@ Vector<String> EditorExportPlugin::get_ios_project_static_libs() const {
}
Variant EditorExportPlugin::get_option(const StringName &p_name) const {
- ERR_FAIL_NULL_V(export_preset, Variant());
+ ERR_FAIL_COND_V(export_preset.is_null(), Variant());
return export_preset->get(p_name);
}