mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-26 21:04:23 +08:00
Merge pull request #236 from tkoecker/const_init_value
Make init_value const
This commit is contained in:
commit
9c4c8f6366
@ -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