summaryrefslogtreecommitdiff
path: root/core/string_builder.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/string_builder.h')
-rw-r--r--core/string_builder.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/string_builder.h b/core/string_builder.h
index 9e2599ac32..596b3bf730 100644
--- a/core/string_builder.h
+++ b/core/string_builder.h
@@ -37,7 +37,7 @@
class StringBuilder {
- uint32_t string_length = 0;
+ uint32_t string_length;
Vector<String> strings;
Vector<const char *> c_strings;
@@ -75,6 +75,10 @@ public:
_FORCE_INLINE_ operator String() const {
return as_string();
}
+
+ StringBuilder() {
+ string_length = 0;
+ }
};
#endif // STRING_BUILDER_H