[Kst] kst_planckio_branch: kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Thu Oct 9 07:44:14 CEST 2003


CVS commit by staikos: 

new idea: let piolib handle type conversion and bail out, this way we don't
have to do string compares and we can support a large number of conversions


  M +2 -2      plancktoi.cpp   1.1.2.3


--- kdeextragear-2/kst/kst/plancktoi.cpp  #1.1.2.2:1.1.2.3
@@ -118,5 +118,5 @@ int TOI::readObject(const QString& group
     }
 
-    if (i == g->objectListSize || QCString("PIODOUBLE") != g->objectType[i]) {
+    if (i == g->objectListSize) {
       return 0;
     }
@@ -132,5 +132,5 @@ int TOI::readObject(const QString& group
     }
 
-    int n = PIOReadTOIObject(&buf, object.latin1(), g->objectNameList[i], g->objectType[i], range.latin1(), g->_group);
+    int n = PIOReadTOIObject(&buf, object.latin1(), g->objectNameList[i], "PIODOUBLE", range.latin1(), g->_group);
     if (n < 0) { // error
       // FIXME - might have to reset() here




More information about the Kst mailing list