]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/link.icc
release: 1.1.42
[lilypond.git] / flower / include / link.icc
index 7699f1dfbc8f28aa47a674157ac100bba086c94f..4b3c886aad95625ec4d06b3e6aebb60837694a2d 100644 (file)
@@ -10,11 +10,11 @@ Link<T>::OK() const
 #ifndef NDEBUG
   if (previous_) 
     {
-       assert (previous_->next_ == this);
+      assert (previous_->next_ == this);
     }
   if (next_) 
     {
-       assert (next_->previous_ == this);
+      assert (next_->previous_ == this);
     }
 #endif    
 }
@@ -22,7 +22,7 @@ Link<T>::OK() const
 template<class T>
 inline
 Link<T>::Link (const T& thing) : 
-  thing_( thing)
+  thing_(thing)
 {
   previous_ = next_ = 0;
 }
@@ -30,7 +30,7 @@ Link<T>::Link (const T& thing) :
 template<class T>
 inline
 Link<T>::Link (Link<T>* previous, Link<T>* next, const T& thing) : 
-  thing_( thing)
+  thing_(thing)
 {
   previous_ = previous;
   next_ = next;
@@ -58,9 +58,9 @@ void
 Link<T>::add (const T& thing)
 {
   
-  Link<T>* l = new Link<T>( this, next_, thing);
-  if ( next_)
-      next_->previous_ = l;
+  Link<T>* l = new Link<T>(this, next_, thing);
+  if (next_)
+    next_->previous_ = l;
   next_ = l;
 }
 
@@ -68,11 +68,11 @@ template<class T>
 inline void
 Link<T>::insert (const T& thing)
 {
-  //    Link<T>* l = new Link<T>( next_, this, thing);
+  //    Link<T>* l = new Link<T>(next_, this, thing);
                                // bugfix hwn 16/9/96
-  Link<T>* l = new Link<T>( previous_, this, thing);
-  if ( previous_)
-      previous_->next_ = l;
+  Link<T>* l = new Link<T>(previous_, this, thing);
+  if (previous_)
+    previous_->next_ = l;
   previous_ = l;
 }
 
@@ -83,15 +83,15 @@ template<class T>
 inline void
 Link<T>::remove (List<T> &l)
 {
-  if ( previous_) 
-      previous_->next_ = next_;
+  if (previous_) 
+    previous_->next_ = next_;
   else 
-       l.top_ = next_;
+    l.top_ = next_;
 
-  if ( next_)
-      next_->previous_ = previous_;
+  if (next_)
+    next_->previous_ = previous_;
   else
-       l.bottom_ = previous_;
+    l.bottom_ = previous_;
 }
 
 template<class T>