Update outdated use of GoogleOnceType.
This commit is contained in:
parent
6103d4ed13
commit
a269a2c48b
1 changed files with 1 additions and 2 deletions
|
@ -592,8 +592,7 @@ void FileGenerator::GenerateBuildDescriptors(io::Printer* printer) {
|
|||
" }\n"
|
||||
"} static_descriptor_initializer_$filename$_;\n",
|
||||
// Without.
|
||||
"::google::protobuf::GoogleOnceType $adddescriptorsname$_once_ =\n"
|
||||
" GOOGLE_PROTOBUF_ONCE_INIT;\n"
|
||||
"GOOGLE_PROTOBUF_DECLARE_ONCE($adddescriptorsname$_once_);\n"
|
||||
"void $adddescriptorsname$() {\n"
|
||||
" ::google::protobuf::GoogleOnceInit(&$adddescriptorsname$_once_,\n"
|
||||
" &$adddescriptorsname$_impl);\n"
|
||||
|
|
Loading…
Add table
Reference in a new issue