]> git.donarmstrong.com Git - lilypond.git/commitdiff
Be const correct in Open_type_font::index_to_charcode()
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 15 Mar 2010 04:15:46 +0000 (01:15 -0300)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 22 Mar 2010 12:56:28 +0000 (09:56 -0300)
lily/open-type-font.cc

index 6b2df26c9229b2e5077bad8587a70729064db397..3b99075ed0846b47639655310a665ad3649bcd6b 100644 (file)
@@ -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