Merge pull request #236 from tkoecker/const_init_value

Make init_value const
This commit is contained in:
Robert Edmonds 2016-09-07 12:20:39 -07:00 committed by GitHub
commit 9c4c8f6366

View File

@ -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) {