[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Tue May 6 23:59:40 CEST 2003


CVS commit by staikos: 

Fix uninit variables.  This could cause crashes on non-GCC compilers.
(especially SIGFPE)


  M +4 -2      kstrvector.cpp   1.5
  M +1 -0      kstscalarlist.cpp   1.3
  M +2 -1      kstslavevector.cpp   1.4
  M +1 -0      kstvector.cpp   1.4


--- kdeextragear-2/kst/kst/kstrvector.cpp  #1.4:1.5
@@ -35,5 +35,6 @@ KstRVector::KstRVector(KstFile *in_file,
                        const int &in_n,
                        const int &skip, const bool &in_DoSkip,
-                       const bool &in_DoAve){
+                       const bool &in_DoAve)
+: KstVector() {
   commonRVConstructor(in_file, in_field, in_tag, in_f0, in_n, skip,
                       in_DoSkip, in_DoAve);
@@ -43,5 +44,6 @@ KstRVector::KstRVector(QDomElement &e, K
                        const QString &o_file,
                        const int &o_n, const int &o_f,
-                       const int &o_s, const bool &o_ave) {
+                       const int &o_s, const bool &o_ave)
+: KstVector() {
   KstFile *in_file=NULL;
   QString in_field, in_tag;

--- kdeextragear-2/kst/kst/kstscalarlist.cpp  #1.2:1.3
@@ -20,4 +20,5 @@
 KstScalarList::KstScalarList() {
   setAutoDelete(TRUE);
+  TrackUsage = false;
 }
 

--- kdeextragear-2/kst/kst/kstslavevector.cpp  #1.3:1.4
@@ -21,5 +21,6 @@
 
 KstSlaveVector::KstSlaveVector(const QString &tag, double *v_in,
-                               const int &in_ns) {
+                               const int &in_ns)
+: KstVector() {
 
   Tag = tag;

--- kdeextragear-2/kst/kst/kstvector.cpp  #1.3:1.4
@@ -28,4 +28,5 @@
 /** Create a vector */
 KstVector::KstVector() {
+  Sum2 = 0;
   ScalarList = NULL;
 }




More information about the Kst mailing list