summaryrefslogtreecommitdiffstats
path: root/core/io/resource_saver.h
diff options
context:
space:
mode:
authorMuller-Castro <37383316+Muller-Castro@users.noreply.github.com>2024-01-08 22:36:19 -0300
committerMuller-Castro <37383316+Muller-Castro@users.noreply.github.com>2024-02-14 11:20:36 -0300
commita8bc9f3e78788bdf0be7348fcbfac15c127f1f48 (patch)
treecb6029160994d6445123f01ffe142e3e3ff6f96a /core/io/resource_saver.h
parent907db8eebcecb97d527edcaff77a1c87a6c068f5 (diff)
downloadredot-engine-a8bc9f3e78788bdf0be7348fcbfac15c127f1f48.tar.gz
Add const lvalue ref to core/* container parameters
Diffstat (limited to 'core/io/resource_saver.h')
-rw-r--r--core/io/resource_saver.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/io/resource_saver.h b/core/io/resource_saver.h
index 4828df297a..3e0821926a 100644
--- a/core/io/resource_saver.h
+++ b/core/io/resource_saver.h
@@ -70,7 +70,7 @@ class ResourceSaver {
static ResourceSavedCallback save_callback;
static ResourceSaverGetResourceIDForPath save_get_id_for_path;
- static Ref<ResourceFormatSaver> _find_custom_resource_format_saver(String path);
+ static Ref<ResourceFormatSaver> _find_custom_resource_format_saver(const String &path);
public:
enum SaverFlags {
@@ -99,7 +99,7 @@ public:
static void set_save_callback(ResourceSavedCallback p_callback);
static void set_get_resource_id_for_path(ResourceSaverGetResourceIDForPath p_callback);
- static bool add_custom_resource_format_saver(String script_path);
+ static bool add_custom_resource_format_saver(const String &script_path);
static void add_custom_savers();
static void remove_custom_savers();
};