You've already forked godot
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user