[Kst] branches/work/kst/portto4/kst/src/libkst

Peter Kümmel syntheticpp at gmx.net
Tue Apr 24 00:53:00 UTC 2012


SVN commit 1291325 by kuemmel:

initialize and use read values

 M  +2 -1      scalarfactory.cpp  
 M  +4 -3      stringfactory.cpp  


--- branches/work/kst/portto4/kst/src/libkst/scalarfactory.cpp #1291324:1291325
@@ -36,7 +36,8 @@
 
   Q_ASSERT(store);
 
-  bool orphan, editable;
+  bool orphan = true;
+  bool editable = true;
   double value=0.0;
 
   while (!xml.atEnd()) {
--- branches/work/kst/portto4/kst/src/libkst/stringfactory.cpp #1291324:1291325
@@ -33,7 +33,8 @@
 
   Q_ASSERT(store);
 
-  bool orphan, editable;
+  bool orphan = true;
+  bool editable = true;
   QString value, descriptiveName;
 
   while (!xml.atEnd()) {
@@ -68,8 +69,8 @@
 
   StringPtr string = store->createObject<String>();
   string->setValue(value);
-  string->setOrphan(true);
-  string->setEditable(true);
+  string->setOrphan(orphan);
+  string->setEditable(editable);
   string->setDescriptiveName(descriptiveName);
 
   return string;


More information about the Kst mailing list