Skip to content

Commit

Permalink
Update core/generator/Generator.cc
Browse files Browse the repository at this point in the history
Co-authored-by: Addisu Z. Taddese <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll and azeey committed Jun 23, 2023
1 parent 52f7e12 commit a775cb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/generator/Generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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<"
Expand Down

0 comments on commit a775cb5

Please sign in to comment.