Commit 9c4c8f63 authored by Robert Edmonds's avatar Robert Edmonds Committed by GitHub

Merge pull request #236 from tkoecker/const_init_value

Make init_value const
parents d5e1b384 f73cc06d
......@@ -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