summaryrefslogtreecommitdiffstats
path: root/core/extension
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 /core/extension
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 'core/extension')
-rw-r--r--core/extension/gdextension.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/extension/gdextension.cpp b/core/extension/gdextension.cpp
index e764b9c112..d4b50facb2 100644
--- a/core/extension/gdextension.cpp
+++ b/core/extension/gdextension.cpp
@@ -675,7 +675,7 @@ GDExtensionInterfaceFunctionPtr GDExtension::get_interface_function(const String
}
Error GDExtension::open_library(const String &p_path, const Ref<GDExtensionLoader> &p_loader) {
- ERR_FAIL_NULL_V_MSG(p_loader, FAILED, "Can't open GDExtension without a loader.");
+ ERR_FAIL_COND_V_MSG(p_loader.is_null(), FAILED, "Can't open GDExtension without a loader.");
loader = p_loader;
Error err = loader->open_library(p_path);