summaryrefslogtreecommitdiff
path: root/upb/pb/textprinter.h
diff options
context:
space:
mode:
Diffstat (limited to 'upb/pb/textprinter.h')
-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