]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/dictionary.hh
release: 1.1.5
[lilypond.git] / flower / include / dictionary.hh
index e1e840b8a102ae23ad9356f82889c166ae7a8820..e9caa46d64be7ed59e2f8688605427a03f79fe87 100644 (file)
@@ -173,6 +173,17 @@ public:
        fixed_p_->dict_arr_[l].name_ = s;
        return fixed_p_->dict_arr_[l].value_;
     }
+  V elem (String s) const
+    {
+      return const_elem (s);
+    }
+  V const_elem (String k) const
+  {
+      V retval;
+      if (elem_b (k))
+       retval = ((Dictionary<V>*)this)->elem (k);
+      return retval;
+  }
   V& operator [] (String k)
     {
       return elem (k);
@@ -180,10 +191,7 @@ public:
 
   V operator [] (String k) const
     {
-      V retval;
-      if (!elem_b (k))
-       return retval ;
-      return ((Dictionary<V> *) this)->elem (k);
+      return const_elem (k);
     }
 
   V remove (String s)