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

Mike Fenton mike at staikos.net
Wed Nov 26 21:24:44 CET 2008


SVN commit 889434 by fenton:

Clean up warnings.


 M  +4 -0      updatemanager.cpp  
 M  +1 -1      vector.cpp  
 M  +1 -1      vector.h  


--- branches/work/kst/portto4/kst/src/libkst/updatemanager.cpp #889433:889434
@@ -126,6 +126,8 @@
   _activeUpdates[updateObject]++;
 #if DEBUG_UPDATE_CYCLE > 0
     qDebug() << "UM - Update beginning for" << reportingObject->shortName() << "for update" << updateObject->shortName() << "update count" << _activeUpdates[updateObject];
+#else
+  Q_UNUSED(reportingObject)
 #endif
 }
 
@@ -134,6 +136,8 @@
   _activeUpdates[updateObject]--;
 #if DEBUG_UPDATE_CYCLE > 0
   qDebug() << "UM - Update is complete for" << reportingObject->shortName() << "for update" << updateObject->shortName() << "update count" << _activeUpdates[updateObject];
+#else
+  Q_UNUSED(reportingObject)
 #endif
   if (_activeUpdates[updateObject] == 0) {
 #if DEBUG_UPDATE_CYCLE > 0
--- branches/work/kst/portto4/kst/src/libkst/vector.cpp #889433:889434
@@ -538,7 +538,7 @@
 }
 
 
-double *const Vector::value() const {
+double *Vector::value() const {
   return _v;
 }
 
--- branches/work/kst/portto4/kst/src/libkst/vector.h #889433:889434
@@ -130,7 +130,7 @@
     virtual void save(QXmlStreamWriter &s);
 
     /** Return a pointer to the raw vector */
-    double *const value() const;
+    double *value() const;
 
     /** access functions for _isScalarList */
     bool isScalarList() const { return _isScalarList; }


More information about the Kst mailing list