]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add Drul_array<>::set() method.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 2 May 2008 02:20:33 +0000 (23:20 -0300)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 2 May 2008 02:20:33 +0000 (23:20 -0300)
flower/include/drul-array.hh

index e687acf2d7a0d7026a430589ae2f795922542f78..47c4847c4048825f0d65904a0431a2e861779410 100644 (file)
@@ -40,7 +40,11 @@ struct Drul_array
   Drul_array ()
   {
   }
-  Drul_array (T t1, T t2)
+  Drul_array (T const &t1, T const &t2)
+  {
+    set (t1, t2);
+  }
+  void set (T const &t1, T const &t2)
   {
     array_[0] = t1;
     array_[1] = t2;