]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/ledger-line-spanner.cc
* The grand 2005-2006 replace.
[lilypond.git] / lily / ledger-line-spanner.cc
index 85ff9e5d29c7c8bb84c6abec9ae954d5eef2e5a1..1bca089b142d42ceb6fa631ec52381310860c5dd 100644 (file)
@@ -3,10 +3,11 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2004--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 2004--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #include <map>
+using namespace std;
 
 #include "item.hh"
 #include "note-head.hh"
@@ -135,7 +136,7 @@ Ledger_line_spanner::set_spacing_rods (SCM smob)
     contain a lot of noteheads, superlinear performance is too slow.
   */
   extract_item_set (me, "note-heads", heads);
-  for (int i = heads.size(); i --; )
+  for (int i = heads.size (); i--;)
     {
       Item *h = heads[i];
 
@@ -188,7 +189,7 @@ struct Ledger_request
   }
 };
 
-typedef std::map < int, Drul_array<Ledger_request> > Ledger_requests;
+typedef map < int, Drul_array<Ledger_request> > Ledger_requests;
 
 /*
   TODO: ledger share a lot of info. Lots of room to optimize away
@@ -258,9 +259,7 @@ Ledger_line_spanner::print (SCM smob)
        i != reqs.end (); last = i++)
     {
       if (last == reqs.end ())
-       {
-         continue;
-       }
+       continue;
 
       Direction d = DOWN;
       do
@@ -343,11 +342,11 @@ Ledger_line_spanner::print (SCM smob)
 
 ADD_INTERFACE (Ledger_line_spanner,
               "ledger-line-interface",
-              
+
               "This spanner draws the ledger lines of a staff.\n"
               "This is a separate grob because it has to process\n"
               "all potential collisions between all note heads.",
-              
+
               "note-heads thickness minimum-length-fraction length-fraction gap");
 
 struct Ledgered_interface
@@ -357,8 +356,8 @@ struct Ledgered_interface
 
 ADD_INTERFACE (Ledgered_interface,
               "ledgered-interface",
-              
+
               "Objects that need ledger lines, typically "
               "note heads. See also @ref{ledger-line-interface}.",
-              
+
               "no-ledgers");