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

George Staikos staikos at kde.org
Sat Nov 6 16:03:27 CET 2004


CVS commit by staikos: 

Claude and Jean-Marc say to revert this and pass "" again.


  M +5 -7      planckobj.cpp   1.24


--- kdeextragear-2/kst/kst/datasources/planck/planckobj.cpp  #1.23:1.24
@@ -177,12 +177,10 @@ int Object::readObject(const QString& ob
     }
 
-    const char *rangeptr = 0L;
-    QString rstr; // need to keep the QString around!!
+    QString range;
 
     if (start < 0 || end < start) {
-      rangeptr = 0L;
+      // Leave blank
     } else {
-      rstr = QString("Begin=%1\nEnd=%2").arg(start).arg(end);
-      rangeptr = rstr.latin1();
+      range = QString("Begin=%1\nEnd=%2").arg(start).arg(end);
     }
 
@@ -201,5 +199,5 @@ int Object::readObject(const QString& ob
         const_cast<char*>("Written"),
         const_cast<char*>("PIODOUBLE"),
-        const_cast<char*>(rangeptr),
+        const_cast<char*>(range.latin1()),
         &MyGroup, &MyObject, &MyData, &MyDataFlag);
 
@@ -221,5 +219,5 @@ int Object::readObject(const QString& ob
           ObjName, 
           const_cast<char*>("PIODOUBLE"),
-          const_cast<char*>(rangeptr),
+          const_cast<char*>(range.latin1()),
           const_cast<char*>("Written"), 
           MyGroup, 





More information about the Kst mailing list