From be6c990b752b8f9619988d870794ba779c9fe807 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Mon, 15 Mar 2010 01:15:46 -0300 Subject: [PATCH] Be const correct in Open_type_font::index_to_charcode() --- lily/open-type-font.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2