]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/drul-array.hh
Imported Upstream version 2.16.0
[lilypond.git] / flower / include / drul-array.hh
index 4db1cb133b820206937be18d500c5b00a8656ec6..d84af5a6148789d1ba05062e6ec01fbdcd917ab5 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 1997--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Copyright (C) 1997--2012 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -44,7 +44,7 @@ struct Drul_array
   {
     return at (d);
   }
-  T constoperator [] (Direction d) const
+  T const &operator [] (Direction d) const
   {
     return at (d);
   }
@@ -74,7 +74,7 @@ inline Real
 linear_combination (Drul_array<Real> const &d, Real x)
 {
   return ((1.0 - x) * Real (d.at (LEFT))
-         + (x + 1.0) * Real (d.at (RIGHT))) * 0.5;
+          + (x + 1.0) * Real (d.at (RIGHT))) * 0.5;
 }
 
 #endif /* DRUL_ARRAY_HH */