From: Han-Wen Nienhuys Date: Mon, 15 Mar 2010 04:15:46 +0000 (-0300) Subject: Be const correct in Open_type_font::index_to_charcode() X-Git-Tag: release/2.13.17-1~35 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=be6c990b752b8f9619988d870794ba779c9fe807;hp=c5d9ef8c7eaed663fabcd70742ba7a0e56cb337b;p=lilypond.git Be const correct in Open_type_font::index_to_charcode() --- diff --git a/lily/open-type-font.cc b/lily/open-type-font.cc index 6b2df26c92..3b99075ed0 100644 --- a/lily/open-type-font.cc +++ b/lily/open-type-font.cc @@ -241,13 +241,13 @@ Open_type_font::name_to_index (string nm) const size_t Open_type_font::index_to_charcode (size_t i) const { - return ((Open_type_font *) this)->index_to_charcode_map_[i]; + return index_to_charcode_map_.at(i); } size_t Open_type_font::count () const { - return ((Open_type_font *) this)->index_to_charcode_map_.size (); + return index_to_charcode_map_.size (); } Real