Skip to content

Commit cf08dd1

Browse files
Automated Code Change
PiperOrigin-RevId: 814501036
1 parent f17fe7d commit cf08dd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/google/protobuf/compiler/java/shared_code_generator.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ void SharedCodeGenerator::Generate(
5252
GeneratedCodeInfo annotations;
5353
io::AnnotationProtoCollector<GeneratedCodeInfo> annotation_collector(
5454
&annotations);
55-
std::unique_ptr<io::Printer> printer(new io::Printer(
55+
std::unique_ptr<io::Printer> printer = std::make_unique<io::Printer>(
5656
output.get(), '$',
57-
options_.annotate_code ? &annotation_collector : nullptr));
57+
options_.annotate_code ? &annotation_collector : nullptr);
5858
std::string info_relative_path = absl::StrCat(classname, ".java.pb.meta");
5959
std::string info_full_path = absl::StrCat(filename, ".pb.meta");
6060
printer->Print(

0 commit comments

Comments
 (0)