Skip to content

Commit

Permalink
Merge dae88a1 into 3d7793f
Browse files Browse the repository at this point in the history
  • Loading branch information
mjcarroll authored Oct 30, 2023
2 parents 3d7793f + dae88a1 commit 89d1040
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 @@ -114,9 +114,9 @@ bool Generator::Generate(const FileDescriptor *_file,
sourceFilename += part.string() + "/";
}

auto message_type_index =
_generatorContext->Open(identifier + fileStem + ".pb_index");
io::Printer indexPrinter(message_type_index, '$');
std::unique_ptr<io::ZeroCopyOutputStream> message_type_index(
_generatorContext->Open(identifier + fileStem + ".pb_index"));
io::Printer indexPrinter(message_type_index.get(), '$');

identifier += fileStem;
headerFilename += fileStem + ".gz.h";
Expand Down

0 comments on commit 89d1040

Please sign in to comment.