Bug 3850

Summary: GW: Additions to KWQPtrList.h
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: New BugsAssignee: Eric Seidel (no email) <eric>
Status: RESOLVED FIXED    
Severity: Enhancement    
Priority: P4    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Bug Depends on:    
Bug Blocks: 3250    
Attachments:
Description Flags
straightforward additions. mjs: review+

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