Commit f73cc06d authored by Thomas Köckerbauer's avatar Thomas Köckerbauer

make init_value const

parent d6ede812
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment