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

Peter Kümmel syntheticpp at gmx.net
Tue Aug 10 13:07:22 CEST 2010


SVN commit 1161567 by kuemmel:

fix some GCC 4.5 warnings

 M  +1 -1      datasources/qimagesource/qimagesource.cpp  
 M  +1 -1      widgets/scalarselector.cpp  


--- branches/work/kst/portto4/kst/src/datasources/qimagesource/qimagesource.cpp #1161566:1161567
@@ -108,7 +108,7 @@
 
 int DataInterfaceQImageVector::read(const QString& field, DataVector::ReadInfo& p)
 {
-  int i;
+  int i = 0;
   int s = p.startingFrame;
   int n = p.numberOfFrames;
 
--- branches/work/kst/portto4/kst/src/widgets/scalarselector.cpp #1161566:1161567
@@ -66,7 +66,7 @@
 
 void ScalarSelector::setDefaultValue(double value) {
  QString string = QString::number(value);
- _scalar->addItem(string, qVariantFromValue(NULL));
+ _scalar->addItem(string, qVariantFromValue(0));
  _scalar->setCurrentIndex(_scalar->findText(string));
  _defaultsSet = true;
 }


More information about the Kst mailing list