Bug 3849 - GW: Add T *QPtrDict::operator()()
Summary: GW: Add T *QPtrDict::operator()()
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:48 PDT by Eric Seidel (no email)
Modified: 2005-07-07 00:53 PDT (History)
0 users

See Also:


Attachments
self explanitory patch. (507 bytes, patch)
2005-07-04 01:49 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:48:32 PDT
Add the very strange T *QPtrDict::operator()() which is used in kdom:

T *operator()() { T *ret = (T *)impl.current(); ++impl; return ret; }

And is described here:
http://doc.trolltech.com/3.3/qptrdictiterator.html#operator()
Comment 1 Eric Seidel (no email) 2005-07-04 01:49:19 PDT
Created attachment 2787 [details]
self explanitory patch.
Comment 2 Maciej Stachowiak 2005-07-04 18:42:06 PDT
Comment on attachment 2787 [details]
self explanitory patch.

Eric and I discussed this and agreed it is probably a bad idea to iterate over
a dictionary this way, instead of using an iterator, so better to fix the
caller.
Comment 3 Maciej Stachowiak 2005-07-04 18:47:33 PDT
Comment on attachment 2787 [details]
self explanitory patch.

ok, this is an iterator method, nonstandard, but not so bad.
Comment 4 Maciej Stachowiak 2005-07-04 18:49:21 PDT
Comment on attachment 2787 [details]
self explanitory patch.

I'd rather see use of this syntax removed than have support for it added to
QDict. But re-request review if it turns out to be too much hassle.
Comment 5 Eric Seidel (no email) 2005-07-04 19:06:46 PDT
Comment on attachment 2787 [details]
self explanitory patch.

After further discussions on IRC, I think we came to the conclusion that there
is a real need for this... even if it is a little "odd".