make init_value const

This commit is contained in:
Thomas Köckerbauer 2016-09-07 15:18:41 +02:00
parent d6ede8125e
commit f73cc06d1e

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