]> git.donarmstrong.com Git - lilypond.git/commitdiff
flower-1.0.4
authorfred <fred>
Wed, 30 Oct 1996 22:28:15 +0000 (22:28 +0000)
committerfred <fred>
Wed, 30 Oct 1996 22:28:15 +0000 (22:28 +0000)
flower/dataf.cc
flower/matdebug.cc

index e53c716d8bd35a17c3598c285c7aaad1d125fa47..d050e278c54850b8b3db273eec0548ff8a5c04d0 100644 (file)
@@ -110,16 +110,14 @@ String Data_file::get_line()
 void
 Data_file::gobble_leading_white() 
 {
-    char c;
-    
     // eat blank lines.
-    while (!eof()) 
-       {
-       c = data_get();             
-       if (!isspace(c))
+    while (!eof()) {
+       char c = data_get();                
+       if (!isspace(c)) {
+           data_unget(c);
            break;
        }
-    data_unget(c);
+    }
 }
 
 
index 5a313123866540ddb3cfcb1dc75bae9bcb4e5e22..1c3df9dda143ec206ae70163e8f337663d9ed966 100644 (file)
@@ -34,10 +34,9 @@ Matrix::print() const
 
 Vector::operator String() const
 {
-    int i=0;
     String s("vector [");
 #ifndef NDEBUG
-    for (; i < dim(); i++) {
+    for (int i=0; i < dim(); i++) {
        s += String(dat[i], "%6f") + ' ';
     }
 #endif