]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/spanner-break-forbid-engraver.cc
Run grand-replace (issue 3765)
[lilypond.git] / lily / spanner-break-forbid-engraver.cc
index baac8f83a219f923d1c4a6fb7f30e2b32a393462..980709005c2ee472109d21b67f7e41eac98264d6 100644 (file)
@@ -1,12 +1,21 @@
-/* 
-  spanner-break-forbid-engraver.cc -- implement Spanner_break_forbid_engraver
-  
-  source file of the GNU LilyPond music typesetter
-  
-  (c) 2007--2009 Han-Wen Nienhuys <hanwen@lilypond.org>
-*/
+/*
+  This file is part of LilyPond, the GNU music typesetter.
+
+  Copyright (C) 2007--2014 Han-Wen Nienhuys <hanwen@lilypond.org>
+
+  LilyPond is free software: you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation, either version 3 of the License, or
+  (at your option) any later version.
 
+  LilyPond is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
 
+  You should have received a copy of the GNU General Public License
+  along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
+*/
 
 #include "engraver.hh"
 #include "international.hh"
@@ -20,7 +29,7 @@
 class Spanner_break_forbid_engraver : public Engraver
 {
   TRANSLATOR_DECLARATIONS (Spanner_break_forbid_engraver);
-  vector<Spanner*> running_spanners_;
+  vector<Spanner *> running_spanners_;
 protected:
   DECLARE_ACKNOWLEDGER (unbreakable_spanner);
   DECLARE_END_ACKNOWLEDGER (unbreakable_spanner);
@@ -28,7 +37,6 @@ protected:
   void process_music ();
 };
 
-
 void
 Spanner_break_forbid_engraver::process_music ()
 {
@@ -41,8 +49,8 @@ Spanner_break_forbid_engraver::process_music ()
 void
 Spanner_break_forbid_engraver::acknowledge_end_unbreakable_spanner (Grob_info gi)
 {
-  vector<Spanner*>::iterator i = find (running_spanners_.begin (), running_spanners_.end (),
-                                      gi.spanner ());
+  vector<Spanner *>::iterator i = find (running_spanners_.begin (), running_spanners_.end (),
+                                        gi.spanner ());
   if (i != running_spanners_.end ())
     running_spanners_.erase (i);
 }
@@ -58,19 +66,18 @@ Spanner_break_forbid_engraver::Spanner_break_forbid_engraver ()
 {
 }
 
-
 ADD_END_ACKNOWLEDGER (Spanner_break_forbid_engraver, unbreakable_spanner);
 ADD_ACKNOWLEDGER (Spanner_break_forbid_engraver, unbreakable_spanner);
 ADD_TRANSLATOR (Spanner_break_forbid_engraver,
-               /* doc */
-               "Forbid breaks in certain spanners.",
+                /* doc */
+                "Forbid breaks in certain spanners.",
 
-               /* create */
-               "",
+                /* create */
+                "",
 
-               /* read */
-               "",
+                /* read */
+                "",
 
-               /* write */
-               ""
-               );
+                /* write */
+                ""
+               );