Commit a269a2c4 authored by pliard@google.com's avatar pliard@google.com

Update outdated use of GoogleOnceType.

parent 6103d4ed
...@@ -592,8 +592,7 @@ void FileGenerator::GenerateBuildDescriptors(io::Printer* printer) { ...@@ -592,8 +592,7 @@ void FileGenerator::GenerateBuildDescriptors(io::Printer* printer) {
" }\n" " }\n"
"} static_descriptor_initializer_$filename$_;\n", "} static_descriptor_initializer_$filename$_;\n",
// Without. // Without.
"::google::protobuf::GoogleOnceType $adddescriptorsname$_once_ =\n" "GOOGLE_PROTOBUF_DECLARE_ONCE($adddescriptorsname$_once_);\n"
" GOOGLE_PROTOBUF_ONCE_INIT;\n"
"void $adddescriptorsname$() {\n" "void $adddescriptorsname$() {\n"
" ::google::protobuf::GoogleOnceInit(&$adddescriptorsname$_once_,\n" " ::google::protobuf::GoogleOnceInit(&$adddescriptorsname$_once_,\n"
" &$adddescriptorsname$_impl);\n" " &$adddescriptorsname$_impl);\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment