Make sanitize() a const method
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 17 Feb 2015 14:27:44 +0000 (17:27 +0300)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 25 Feb 2015 23:43:28 +0000 (15:43 -0800)
commitde2118ed7a998a1df9b28fd1be96b4af89ed82c3
tree8c3aaeddee2642d1c679c73456ffc52c480b76da
parent6759ed95a3bec2874826376b68ebff19ba277ef2
Make sanitize() a const method

This makes a lot of code safer.  We only try modifying the object in one
place, after making sure it's safe to do so.  So, do a const_cast<> in
that one place...
14 files changed:
src/hb-open-file-private.hh
src/hb-open-type-private.hh
src/hb-ot-cmap-table.hh
src/hb-ot-head-table.hh
src/hb-ot-hhea-table.hh
src/hb-ot-hmtx-table.hh
src/hb-ot-layout-common-private.hh
src/hb-ot-layout-gdef-table.hh
src/hb-ot-layout-gpos-table.hh
src/hb-ot-layout-gsub-table.hh
src/hb-ot-layout-gsubgpos-private.hh
src/hb-ot-layout-jstf-table.hh
src/hb-ot-maxp-table.hh
src/hb-ot-name-table.hh