[Kst] extragear/graphics/kst/kst

Dirk Mueller mueller at kde.org
Wed Feb 1 17:03:23 CET 2006


SVN commit 504631 by mueller:

the usual "daily unbreak compilation"


 M  +4 -3      kstviewobject.cpp  


--- trunk/extragear/graphics/kst/kst/kstviewobject.cpp #504630:504631
@@ -742,8 +742,8 @@
   //  from left-to-right and top-to-bottom based on the position
   //  of their top-left corner.
   //
-  int plotLoc[rows*_columns]; // what plot lives at each grid location
-  int unAssigned[cnt]; // what plots haven't got a home yet?
+  QMemArray<int> plotLoc(rows*_columns); // what plot lives at each grid location
+  QMemArray<int> unAssigned(cnt); // what plots haven't got a home yet?
   int n_unassigned = 0;
   int r,c, CR;
   for (int i=0; i<rows*_columns; i++) {
@@ -799,7 +799,8 @@
     plotLoc[CR] = unAssigned[i];
   }
 
-  double HR[rows], sum_HR=0;
+  QMemArray<double> HR(rows);
+  double sum_HR=0;
   KstViewObject *ob;
   double hr;
   for (r=0; r<rows; r++) {


More information about the Kst mailing list