summaryrefslogtreecommitdiff
path: root/upb
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2019-01-25 12:20:49 -0800
committerJosh Haberman <jhaberman@gmail.com>2019-01-25 12:20:49 -0800
commit8980f6db5c4d28de9dd8773ae27c823767122970 (patch)
treea687ad0bc77d5bdc346435ff4a241508bd0baa78 /upb
parentc358bb42fd9d4121bd642bcd41a317e5ed7625be (diff)
text_printer.h now successfully compiles.
Diffstat (limited to 'upb')
-rw-r--r--upb/pb/textprinter.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/upb/pb/textprinter.h b/upb/pb/textprinter.h
index 80abc00..0af2b1a 100644
--- a/upb/pb/textprinter.h
+++ b/upb/pb/textprinter.h
@@ -42,9 +42,10 @@ class upb::pb::TextPrinterPtr {
/* The given handlers must have come from NewHandlers(). It must outlive the
* TextPrinter. */
- static TextPrinterPtr *Create(Arena *arena, const upb::Handlers *handlers,
- BytesSink output) {
- return TextPrinterPtr(upb_textprinter_create(arena, handlers, output));
+ static TextPrinterPtr Create(Arena *arena, upb::HandlersPtr *handlers,
+ BytesSink output) {
+ return TextPrinterPtr(
+ upb_textprinter_create(arena->ptr(), handlers->ptr(), output.sink()));
}
void SetSingleLineMode(bool single_line) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback