Bug 3830 - GW: add QIntDict support to KWQ
Summary: GW: add QIntDict support to KWQ
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P4 Normal
Assignee: Eric Seidel (no email)
URL:
Keywords:
Depends on:
Blocks: 3250
  Show dependency treegraph
 
Reported: 2005-07-02 20:54 PDT by Eric Seidel (no email)
Modified: 2005-07-03 02:53 PDT (History)
0 users

See Also:


Attachments
basically a copy of QPtrDict.h, replacing "T *" with "int" (2.14 KB, patch)
2005-07-02 20:55 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-02 20:54:44 PDT
This patch adds a (sortof hackish) QIntDict to KWQ.  This QIntDict subclasses from QPtrCollection, and 
makes the (potentially bad) assumption that it can simply cast keys from int to (void *) and everything will 
be hunky dorry.

That said, the patch is otherwise quite simple.  The header was originally just a copy of QPtrDict with a few 
T * changed to int.
Comment 1 Eric Seidel (no email) 2005-07-02 20:55:56 PDT
Created attachment 2769 [details]
basically a copy of QPtrDict.h, replacing "T *" with "int"
Comment 2 Maciej Stachowiak 2005-07-03 00:17:24 PDT
Comment on attachment 2769 [details]
basically a copy of QPtrDict.h, replacing "T *" with "int"

r=me but please make sure to add a newline to the end of the new file before
landing.