Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Unified Diff: mojo/public/bindings/generators/mojom_cpp_generator.py

Issue 68893032: Mojo: generated pointer 'getters' should return const pointers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/bindings/generators/mojom_cpp_generator.py
diff --git a/mojo/public/bindings/generators/mojom_cpp_generator.py b/mojo/public/bindings/generators/mojom_cpp_generator.py
index f807f0f11bfcfcd7f6be02c82e58202c090c34bc..a34a5b5df76641579544b90c05098e0b4a9dbbed 100644
--- a/mojo/public/bindings/generators/mojom_cpp_generator.py
+++ b/mojo/public/bindings/generators/mojom_cpp_generator.py
@@ -84,7 +84,7 @@ class CPPGenerator(object):
getter_template = \
Template(" $TYPE $FIELD() const { return ${FIELD}_; }")
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];")
templates = {}
HEADER_SIZE = 8
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698