Add const references detected by clang-tidy

This commit is contained in:
Wilson E. Alvarez committed 2023-12-16 13:36:44 -05:00
1 parent 2d0ee20ff3
commit a3cb1b096f
57 files changed
+120 -120

No files matched your search

+1 -1
View File
@@ -625,7 +625,7 @@ GDScriptParser::ClassNode *GDScriptParser::find_class(const String &p_qualified_
// Starts at index 1 because index 0 was handled above.
for (int i = 1; result != nullptr && i < class_names.size(); i++) {
String current_name = class_names[i];
const String &current_name = class_names[i];
GDScriptParser::ClassNode *next = nullptr;
if (result->has_member(current_name)) {
GDScriptParser::ClassNode::Member member = result->get_member(current_name);