From a775cb596c8a1d4c2b7b3a6ed9155ee50fe6e726 Mon Sep 17 00:00:00 2001 From: Michael Carroll Date: Fri, 23 Jun 2023 08:00:08 -0500 Subject: [PATCH] Update core/generator/Generator.cc Co-authored-by: Addisu Z. Taddese Signed-off-by: Michael Carroll Signed-off-by: Michael Carroll --- core/generator/Generator.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/generator/Generator.cc b/core/generator/Generator.cc index 0f41d6b4..6252bda0 100644 --- a/core/generator/Generator.cc +++ b/core/generator/Generator.cc @@ -116,7 +116,7 @@ bool Generator::Generate(const FileDescriptor *_file, auto message_type_index = _generatorContext->Open(identifier + fileStem + ".pb_index"); - io::Printer index_printer(message_type_index, '$'); + io::Printer indexPrinter(message_type_index, '$'); identifier += fileStem; headerFilename += fileStem + ".gz.h"; @@ -155,8 +155,8 @@ bool Generator::Generate(const FileDescriptor *_file, auto desc = _file->message_type(i); std::string ptrTypes; - index_printer.PrintRaw(desc->name()); - index_printer.PrintRaw("\n"); + indexPrinter.PrintRaw(desc->name()); + indexPrinter.PrintRaw("\n"); // Define std::unique_ptr types for our messages ptrTypes += "typedef std::unique_ptr<"