aboutsummaryrefslogtreecommitdiff
path: root/core/string_builder.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/string_builder.h')
-rw-r--r--core/string_builder.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/string_builder.h b/core/string_builder.h
index 48e3fd663..596b3bf73 100644
--- a/core/string_builder.h
+++ b/core/string_builder.h
@@ -27,6 +27,7 @@
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
+
#ifndef STRING_BUILDER_H
#define STRING_BUILDER_H
@@ -36,7 +37,7 @@
class StringBuilder {
- uint32_t string_length = 0;
+ uint32_t string_length;
Vector<String> strings;
Vector<const char *> c_strings;
@@ -74,6 +75,10 @@ public:
_FORCE_INLINE_ operator String() const {
return as_string();
}
+
+ StringBuilder() {
+ string_length = 0;
+ }
};
#endif // STRING_BUILDER_H