We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f17fe7d commit cf08dd1Copy full SHA for cf08dd1
src/google/protobuf/compiler/java/shared_code_generator.cc
@@ -52,9 +52,9 @@ void SharedCodeGenerator::Generate(
52
GeneratedCodeInfo annotations;
53
io::AnnotationProtoCollector<GeneratedCodeInfo> annotation_collector(
54
&annotations);
55
- std::unique_ptr<io::Printer> printer(new io::Printer(
+ std::unique_ptr<io::Printer> printer = std::make_unique<io::Printer>(
56
output.get(), '$',
57
- options_.annotate_code ? &annotation_collector : nullptr));
+ options_.annotate_code ? &annotation_collector : nullptr);
58
std::string info_relative_path = absl::StrCat(classname, ".java.pb.meta");
59
std::string info_full_path = absl::StrCat(filename, ".pb.meta");
60
printer->Print(
0 commit comments