mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2025-01-14 01:07:57 +08:00
make init_value const
This commit is contained in:
parent
d6ede8125e
commit
f73cc06d1e
@ -337,7 +337,7 @@ GenerateHelperFunctionDefinitions(io::Printer* printer, bool is_submessage)
|
||||
"void $lcclassname$__init\n"
|
||||
" ($classname$ *message)\n"
|
||||
"{\n"
|
||||
" static $classname$ init_value = $ucclassname$__INIT;\n"
|
||||
" static const $classname$ init_value = $ucclassname$__INIT;\n"
|
||||
" *message = init_value;\n"
|
||||
"}\n");
|
||||
if (!is_submessage) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user