Commit cc667bd4 authored by darin@chromium.org's avatar darin@chromium.org

Mojo: generated pointer 'getters' should return const pointers.

Review URL: https://codereview.chromium.org/68893032

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235655 0039d316-1c4b-4281-b951-d872f2087c98
parent b3f68ebc
...@@ -84,7 +84,7 @@ class CPPGenerator(object): ...@@ -84,7 +84,7 @@ class CPPGenerator(object):
getter_template = \ getter_template = \
Template(" $TYPE $FIELD() const { return ${FIELD}_; }") Template(" $TYPE $FIELD() const { return ${FIELD}_; }")
ptr_getter_template = \ ptr_getter_template = \
Template(" $TYPE $FIELD() const { return ${FIELD}_.ptr; }") Template(" const $TYPE $FIELD() const { return ${FIELD}_.ptr; }")
pad_template = Template(" uint8_t _pad${COUNT}_[$PAD];") pad_template = Template(" uint8_t _pad${COUNT}_[$PAD];")
templates = {} templates = {}
HEADER_SIZE = 8 HEADER_SIZE = 8
......
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