]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/open-type-font.cc
Be const correct in Open_type_font::index_to_charcode()
[lilypond.git] / 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