[Kst] extragear/graphics/kst/src/libkstapp
George Staikos
staikos at kde.org
Thu May 25 16:52:13 CEST 2006
SVN commit 544621 by staikos:
revert most of the last commit. it went horribly horribly wrong. meanwhile
this function needs a redesign.
M +3 -2 kstviewobject.cpp
M +1 -1 kstviewobject.h
--- trunk/extragear/graphics/kst/src/libkstapp/kstviewobject.cpp #544620:544621
@@ -1519,14 +1519,15 @@
}
-void KstViewObject::recursivelyQuery(bool (KstViewObject::*method)() const, KstViewObjectList& list, bool matchRecurse) const {
+// FIXME: rewrite this so it can be const. It's -way- too expensive.
+void KstViewObject::recursivelyQuery(bool (KstViewObject::*method)() const, KstViewObjectList& list, bool matchRecurse) {
bool has = (this->*method)();
if (has) {
list.append(this);
}
if (!has || (has && matchRecurse)) {
- for (KstViewObjectList::ConstIterator i = _children.begin(); i != _children.end(); ++i) {
+ for (KstViewObjectList::Iterator i = _children.begin(); i != _children.end(); ++i) {
(*i)->recursivelyQuery(method, list, matchRecurse);
}
}
--- trunk/extragear/graphics/kst/src/libkstapp/kstviewobject.h #544620:544621
@@ -203,7 +203,7 @@
void selectAll();
void unselectAll();
- void recursivelyQuery(bool (KstViewObject::*method)() const, KstViewObjectList& list, bool matchRecurse = false) const;
+ void recursivelyQuery(bool (KstViewObject::*method)() const, KstViewObjectList& list, bool matchRecurse = false);
virtual void detach(); // remove from its parent
More information about the Kst
mailing list