From 8980f6db5c4d28de9dd8773ae27c823767122970 Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Fri, 25 Jan 2019 12:20:49 -0800 Subject: text_printer.h now successfully compiles. --- upb/pb/textprinter.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'upb') 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) { -- cgit v1.2.3