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
@@ -1409,7 +1409,7 @@ void ScriptTextEditor::_edit_option(int p_op) {
PackedStringArray results;
for (int i = 0; i < lines.size(); i++) {
String line = lines[i];
const String &line = lines[i];
String whitespace = line.substr(0, line.size() - line.strip_edges(true, false).size()); // Extract the whitespace at the beginning.
if (expression.parse(line) == OK) {
Variant result = expression.execute(Array(), Variant(), false, true);