Merge pull request #86966 from Muller-Castro/value2ref-core
Add const lvalue ref to `core/*` container parameters
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user