summaryrefslogtreecommitdiff
path: root/upb/bindings
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2019-01-12 19:12:57 -0800
committerJoshua Haberman <jhaberman@gmail.com>2019-01-12 19:12:57 -0800
commit48863ea0be94ea3d3d61206ad7ce9ead206770fa (patch)
tree9c4b647586ecb7c52fa56f8cef26301027ec5ae7 /upb/bindings
parentd2f9bec5c6f3c34362cf13e35e11d3dbc7888a32 (diff)
A lot more tests are working now.
Diffstat (limited to 'upb/bindings')
-rw-r--r--upb/bindings/stdc++/string.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/upb/bindings/stdc++/string.h b/upb/bindings/stdc++/string.h
index 4d7a719..55b44cf 100644
--- a/upb/bindings/stdc++/string.h
+++ b/upb/bindings/stdc++/string.h
@@ -48,11 +48,12 @@ class StringSink {
explicit StringSink(T* target) {
// TODO(haberman): we need to avoid rebuilding a new handler every time,
// but with class globals disallowed for google3 C++ this is tricky.
+ upb_byteshandler_init(&handler_);
FillStringHandler<T>::SetHandler(&handler_);
input_.Reset(&handler_, target);
}
- BytesSink* input() { return &input_; }
+ BytesSink input() { return input_; }
private:
upb_byteshandler handler_;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback