[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Thu May 22 08:26:52 CEST 2003


CVS commit by staikos: 

pass in the input vectors to the plugin


  M +2 -6      kstplugin.cpp   1.11
  M +2 -0      kstvector.h   1.10


--- kdeextragear-2/kst/kst/kstplugin.cpp  #1.10:1.11
@@ -143,6 +143,6 @@ void KstPlugin::update(int update_counte
   for (unsigned i = 0; i < inArrayCnt; i++) {
     int sz = 1;
-    inVectors[i] = new double[sz];
-    inArrayLens[i] = sz;
+    inVectors[i] = _inputVectors.at(i)->data();
+    inArrayLens[i] = _inputVectors.at(i)->numSamples();
   }
 
@@ -163,8 +163,4 @@ void KstPlugin::update(int update_counte
   for (unsigned i = 0; i < outArrayCnt; i++) {
     free(outVectors[i]);
-  }
-
-  for (unsigned i = 0; i < inArrayCnt; i++) {
-    delete[] inVectors[i];
   }
 

--- kdeextragear-2/kst/kst/kstvector.h  #1.9:1.10
@@ -101,4 +101,6 @@ public:
   void insertScalarsInList(KstScalarList &s_list);
 
+  double *data() const { return V; }
+
 
 protected: // Protected attributes




More information about the Kst mailing list