[Kst] extragear/graphics/kst/src/libkstmath

George Staikos staikos at kde.org
Wed Jul 12 01:01:15 CEST 2006


SVN commit 561358 by staikos:

Fix locking problem: don't lock the provider!


 M  +6 -6      kstplugin.cpp  


--- trunk/extragear/graphics/kst/src/libkstmath/kstplugin.cpp #561357:561358
@@ -570,20 +570,20 @@
       } else {
         v = new KstVector(QString::null, 0, this, false);
       }
-      v->writeLock();
+      v->KstObject::writeLock();
       _outputVectors.insert((*it)._name, v);
-      _outArrayCnt++;
+      ++_outArrayCnt;
       KST::addVectorToList(v);
     } else if ((*it)._type == Plugin::Data::IOValue::FloatType) {
       KstScalarPtr s = new KstScalar(QString::null, this);
-      s->writeLock();
+      s->KstObject::writeLock();
       _outputScalars.insert((*it)._name, s);
-      _outScalarCnt++;
+      ++_outScalarCnt;
     } else if ((*it)._type == Plugin::Data::IOValue::StringType) {
       KstStringPtr s = new KstString(QString::null, this);
-      s->writeLock();
+      s->KstObject::writeLock();
       _outputStrings.insert((*it)._name, s);
-      _outStringCnt++;
+      ++_outStringCnt;
     }
   }
 


More information about the Kst mailing list