diff options
Diffstat (limited to 'core/string_builder.cpp')
-rw-r--r-- | core/string_builder.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/string_builder.cpp b/core/string_builder.cpp index 6b105611f0..c8d6498f27 100644 --- a/core/string_builder.cpp +++ b/core/string_builder.cpp @@ -33,8 +33,9 @@ #include <string.h> StringBuilder &StringBuilder::append(const String &p_string) { - if (p_string == String()) + if (p_string == String()) { return *this; + } strings.push_back(p_string); appended_strings.push_back(-1); @@ -56,8 +57,9 @@ StringBuilder &StringBuilder::append(const char *p_cstring) { } String StringBuilder::as_string() const { - if (string_length == 0) + if (string_length == 0) { return ""; + } CharType *buffer = memnew_arr(CharType, string_length); |