From 474e253aa13c5c800d4a6fcf7f79018e6a1651fb Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 25 May 2023 21:54:57 +0200 Subject: [PATCH] Added 2 const qualifiers. --- core/containers/pool_vector.h | 2 +- core/string/ustring.cpp | 2 +- core/string/ustring.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/containers/pool_vector.h b/core/containers/pool_vector.h index b0a8a46c3..bd941ebf9 100644 --- a/core/containers/pool_vector.h +++ b/core/containers/pool_vector.h @@ -433,7 +433,7 @@ public: return OK; } - String join(String delimiter) { + String join(String delimiter) const { String rs = ""; int s = size(); Read r = read(); diff --git a/core/string/ustring.cpp b/core/string/ustring.cpp index af0688d94..dd9276455 100644 --- a/core/string/ustring.cpp +++ b/core/string/ustring.cpp @@ -2802,7 +2802,7 @@ Vector String::split_ints_mk(const Vector &p_splitters, bool p_allo return ret; } -String String::join(Vector parts) { +String String::join(Vector parts) const { String ret; for (int i = 0; i < parts.size(); ++i) { if (i > 0) { diff --git a/core/string/ustring.h b/core/string/ustring.h index 7dca8f0ce..3c6912516 100644 --- a/core/string/ustring.h +++ b/core/string/ustring.h @@ -405,7 +405,7 @@ public: Vector split_ints(const String &p_splitter, bool p_allow_empty = true) const; Vector split_ints_mk(const Vector &p_splitters, bool p_allow_empty = true) const; - String join(Vector parts); + String join(Vector parts) const; static CharType char_uppercase(CharType p_char); static CharType char_lowercase(CharType p_char);