1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Add const references detected by clang-tidy

This commit is contained in:
Wilson E. Alvarez
2023-11-18 17:40:56 -05:00
parent 2d0ee20ff3
commit a3cb1b096f
57 changed files with 120 additions and 120 deletions

View File

@@ -256,7 +256,7 @@ void EditorFileSystem::_scan_filesystem() {
if (l.begins_with("::")) {
Vector<String> split = l.split("::");
ERR_CONTINUE(split.size() != 3);
String name = split[1];
const String &name = split[1];
cpath = name;
@@ -289,7 +289,7 @@ void EditorFileSystem::_scan_filesystem() {
if (deps.length()) {
Vector<String> dp = deps.split("<>");
for (int i = 0; i < dp.size(); i++) {
String path = dp[i];
const String &path = dp[i];
fc.deps.push_back(path);
}
}