[Kst] kdeextragear-2/kst/kst/datasources/ascii

George Staikos staikos at kde.org
Fri Jul 9 21:08:41 CEST 2004


CVS commit by staikos: 

note for later


  M +5 -6      ascii.cpp   1.16


--- kdeextragear-2/kst/kst/datasources/ascii/ascii.cpp  #1.15:1.16
@@ -181,4 +181,7 @@ int AsciiSource::readField(double *v, co
   file.readBlock(tmpbuf, bufread);
 
+  // FIXME: I don't see why this was changed to memset() instead of just
+  //        setting the required elements to 0 inline when required, as it
+  //        did before.
   memset( v, 0, n * sizeof( double ) );
 
@@ -189,10 +192,7 @@ int AsciiSource::readField(double *v, co
     for (int ch = _rowIndex[s] - bufstart; !done && ch < bufread; ch++) {
       if (isspace(tmpbuf[ch])) {
-        if (tmpbuf[ch] == '\n' ||
-            tmpbuf[ch] == '\r' ) {
+        if (tmpbuf[ch] == '\n' || tmpbuf[ch] == '\r' ) {
           done = true;
-        }
-        else
-        {
+        } else {
           incol = false;
         }
@@ -284,5 +284,4 @@ QStringList AsciiSource::fieldList() con
 
 void AsciiSource::save(QTextStream &ts) {
-  // FIXME
   KstDataSource::save(ts);
 }





More information about the Kst mailing list