summaryrefslogtreecommitdiffstats
path: root/core/io/resource_loader.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/io/resource_loader.h')
-rw-r--r--core/io/resource_loader.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/io/resource_loader.h b/core/io/resource_loader.h
index 3099d9aab3..1f79b83f11 100644
--- a/core/io/resource_loader.h
+++ b/core/io/resource_loader.h
@@ -158,7 +158,7 @@ private:
static ResourceLoadedCallback _loaded_callback;
- static Ref<ResourceFormatLoader> _find_custom_resource_format_loader(String path);
+ static Ref<ResourceFormatLoader> _find_custom_resource_format_loader(const String &path);
struct ThreadLoadTask {
WorkerThreadPool::TaskID task_id = 0; // Used if run on a worker thread from the pool.
@@ -263,7 +263,7 @@ public:
static void set_load_callback(ResourceLoadedCallback p_callback);
static ResourceLoaderImport import;
- static bool add_custom_resource_format_loader(String script_path);
+ static bool add_custom_resource_format_loader(const String &script_path);
static void add_custom_loaders();
static void remove_custom_loaders();