aboutsummaryrefslogtreecommitdiff
path: root/core/string_builder.h
diff options
context:
space:
mode:
authorMarcelo Fernandez2018-03-22 00:17:18 -0300
committerMarcelo Fernandez2018-03-22 00:17:18 -0300
commit35d21c08813242002e31f1d9bbc45fed5a21ebde (patch)
tree60bce83ab5f359d83ee2537977c306d1ba7eba2b /core/string_builder.h
parentf2df8c94b2e5ba6c4eee3515d1d30f36194ca803 (diff)
downloadgodot-35d21c08813242002e31f1d9bbc45fed5a21ebde.tar.gz
godot-35d21c08813242002e31f1d9bbc45fed5a21ebde.tar.zst
godot-35d21c08813242002e31f1d9bbc45fed5a21ebde.zip
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 9e2599ac3..596b3bf73 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