diff options
Diffstat (limited to 'core/string_builder.h')
-rw-r--r-- | core/string_builder.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/core/string_builder.h b/core/string_builder.h index dd8a154890..2a37d14218 100644 --- a/core/string_builder.h +++ b/core/string_builder.h @@ -32,12 +32,10 @@ #define STRING_BUILDER_H #include "core/ustring.h" - #include "core/vector.h" class StringBuilder { - - uint32_t string_length; + uint32_t string_length = 0; Vector<String> strings; Vector<const char *> c_strings; @@ -80,9 +78,7 @@ public: return as_string(); } - StringBuilder() { - string_length = 0; - } + StringBuilder() {} }; #endif // STRING_BUILDER_H |