diff options
author | Wilson E. Alvarez <wilson.e.alvarez@rubonnek.com> | 2023-11-18 17:40:56 -0500 |
---|---|---|
committer | Wilson E. Alvarez <wilson.e.alvarez@rubonnek.com> | 2023-12-16 13:36:44 -0500 |
commit | a3cb1b096fcecad03562205bd285ebefc816c64a (patch) | |
tree | 3966ab0682c6269c60de7b438d51b30ae164ffde /core/string | |
parent | 2d0ee20ff30461b6b10f6fdfba87511a0ebc6642 (diff) | |
download | redot-engine-a3cb1b096fcecad03562205bd285ebefc816c64a.tar.gz |
Add const references detected by clang-tidy
Diffstat (limited to 'core/string')
-rw-r--r-- | core/string/ustring.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/string/ustring.cpp b/core/string/ustring.cpp index a24cff4f11..4346b226b9 100644 --- a/core/string/ustring.cpp +++ b/core/string/ustring.cpp @@ -4569,7 +4569,7 @@ bool String::is_valid_ip_address() const { if (find(":") >= 0) { Vector<String> ip = split(":"); for (int i = 0; i < ip.size(); i++) { - String n = ip[i]; + const String &n = ip[i]; if (n.is_empty()) { continue; } @@ -4591,7 +4591,7 @@ bool String::is_valid_ip_address() const { return false; } for (int i = 0; i < ip.size(); i++) { - String n = ip[i]; + const String &n = ip[i]; if (!n.is_valid_int()) { return false; } |