summaryrefslogtreecommitdiffstats
path: root/core/config
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-02-15 15:44:43 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-02-15 15:44:43 +0100
commitef5d6ccfb7bf155a238ada79db12ea41ca993116 (patch)
treebc1acc6c5b0df70661293de0f8d0586ce0808982 /core/config
parent4859f8090f1e21d42bc81313f15367dcb1c4220c (diff)
parenta8bc9f3e78788bdf0be7348fcbfac15c127f1f48 (diff)
downloadredot-engine-ef5d6ccfb7bf155a238ada79db12ea41ca993116.tar.gz
Merge pull request #86966 from Muller-Castro/value2ref-core
Add const lvalue ref to `core/*` container parameters
Diffstat (limited to 'core/config')
-rw-r--r--core/config/project_settings.cpp4
-rw-r--r--core/config/project_settings.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/core/config/project_settings.cpp b/core/config/project_settings.cpp
index b8ce271586..4fd6ab9028 100644
--- a/core/config/project_settings.cpp
+++ b/core/config/project_settings.cpp
@@ -688,7 +688,7 @@ Error ProjectSettings::setup(const String &p_path, const String &p_main_pack, bo
return err;
}
-bool ProjectSettings::has_setting(String p_var) const {
+bool ProjectSettings::has_setting(const String &p_var) const {
_THREAD_SAFE_METHOD_
return props.has(p_var);
@@ -971,7 +971,7 @@ Error ProjectSettings::_save_custom_bnd(const String &p_file) { // add other par
}
#ifdef TOOLS_ENABLED
-bool _csproj_exists(String p_root_dir) {
+bool _csproj_exists(const String &p_root_dir) {
Ref<DirAccess> dir = DirAccess::open(p_root_dir);
ERR_FAIL_COND_V(dir.is_null(), false);
diff --git a/core/config/project_settings.h b/core/config/project_settings.h
index 55d5957ad1..385f93e91e 100644
--- a/core/config/project_settings.h
+++ b/core/config/project_settings.h
@@ -161,7 +161,7 @@ public:
void store_global_class_list(const Array &p_classes);
String get_global_class_list_path() const;
- bool has_setting(String p_var) const;
+ bool has_setting(const String &p_var) const;
String localize_path(const String &p_path) const;
String globalize_path(const String &p_path) const;