Bug 3850 - GW: Additions to KWQPtrList.h
Summary: GW: Additions to KWQPtrList.h
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P4 Enhancement
Assignee: Eric Seidel (no email)
URL:
Keywords:
Depends on:
Blocks: 3250
  Show dependency treegraph
 
Reported: 2005-07-04 01:54 PDT by Eric Seidel (no email)
Modified: 2005-07-05 00:27 PDT (History)
0 users

See Also:


Attachments
straightforward additions. (1.16 KB, patch)
2005-07-04 02:02 PDT, Eric Seidel (no email)
mjs: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 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(); }
Comment 1 Eric Seidel (no email) 2005-07-04 02:02:17 PDT
Created attachment 2788 [details]
straightforward additions.
Comment 2 Maciej Stachowiak 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.
Comment 3 Maciej Stachowiak 2005-07-04 20:39:37 PDT
Comment on attachment 2788 [details]
straightforward additions.

r=me