RESOLVED FIXED 3850
GW: Additions to KWQPtrList.h
https://bugs.webkit.org/show_bug.cgi?id=3850
Summary GW: Additions to KWQPtrList.h
Eric Seidel (no email)
Reported 2005-07-04 01:54:15 PDT
Several small additions to our QPtrList: int findRef(const T *item) { return impl.findRef(item); } typedef QPtrListIterator<T> Iterator; typedef QPtrListIterator<T> ConstIterator; ConstIterator begin() const { return ConstIterator(*this); } ConstIterator end() const { ConstIterator itr(*this); } And to QPtrListIterator: T *operator*() const { return (T *)impl.current(); }
Attachments
straightforward additions. (1.16 KB, patch)
2005-07-04 02:02 PDT, Eric Seidel (no email)
mjs: review+
Eric Seidel (no email)
Comment 1 2005-07-04 02:02:17 PDT
Created attachment 2788 [details] straightforward additions.
Maciej Stachowiak
Comment 2 2005-07-04 18:52:18 PDT
More standard C++ semantics would be for operator* to return T *& rather than T* but I guess this matches KDE.
Maciej Stachowiak
Comment 3 2005-07-04 20:39:37 PDT
Comment on attachment 2788 [details] straightforward additions. r=me
Note You need to log in before you can comment on or make changes to this bug.