[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Mon Mar 28 05:16:16 CEST 2005


CVS commit by staikos: 

this can be const


  M +3 -3      kstobject.h   1.37


--- kdeextragear-2/kst/kst/kstobject.h  #1.36:1.37
@@ -95,5 +95,5 @@ class KstObjectList : public QValueList<
     virtual QStringList tagNames() {
       QStringList rc;
-      for (typename QValueList<T>::Iterator it = QValueList<T>::begin(); it != QValueList<T>::end(); ++it) {
+      for (typename QValueList<T>::ConstIterator it = QValueList<T>::begin(); it != QValueList<T>::end(); ++it) {
         rc << (*it)->tagName();
       }
@@ -130,6 +130,6 @@ class KstObjectList : public QValueList<
     }
 
-    virtual typename QValueList<T>::iterator removeTag(const QString& x) {
-      typename QValueList<T>::iterator it = findTag(x);
+    virtual typename QValueList<T>::Iterator removeTag(const QString& x) {
+      typename QValueList<T>::Iterator it = findTag(x);
       if (it != QValueList<T>::end()) {
         return QValueList<T>::remove(it);




More information about the Kst mailing list