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

George Staikos staikos at kde.org
Wed May 30 03:26:08 CEST 2007


SVN commit 669676 by staikos:

add a most excellent hack to make iteration work transparently on
KstObjectCollection. :-)


 M  +2 -0      kstobjectcollection.h  


--- branches/work/kst/portto4/kst/src/libkst/kstobjectcollection.h #669675:669676
@@ -77,6 +77,8 @@
     KstObjectCollection();
     ~KstObjectCollection();
 
+    typedef typename KstObjectList<KstSharedPtr<T> >::const_iterator const_iterator;
+    typedef typename KstObjectList<KstSharedPtr<T> >::iterator iterator;
     bool addObject(T *o);
     bool removeObject(T *o);
     void doRename(T *o, const KstObjectTag& newTag);


More information about the Kst mailing list