17 Commits

Author SHA1 Message Date
benjamin%smedbergs.us
3968e1b42d Back out bug 412320 and various followups because the perf impact was minimal and the code is more complicated
git-svn-id: svn://10.0.0.236/trunk@246221 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-21 20:39:23 +00:00
peterv%propagandism.org
900319a032 Part 2 of the fix for bug 413281 (Firefox leaks when Yahoo Toolbar is installed). r/sr=sicking.
git-svn-id: svn://10.0.0.236/trunk@245124 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-07 11:37:18 +00:00
benjamin%smedbergs.us
cc4193bab8 Bug 412320 - Try code-generation for QI impls, r=roc+luser
git-svn-id: svn://10.0.0.236/trunk@243992 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-25 17:14:53 +00:00
jwalden%mit.edu
dda6ff3c99 Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
cbiesinger%web.de
bb74327ee2 bug 275116 use the safe version of ObjectAt as required by the documentation
patch by Andreas Lange <mozilla@lange.cx> r=darin sr=biesi


git-svn-id: svn://10.0.0.236/trunk@217102 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-17 21:59:26 +00:00
benjamin%smedbergs.us
6e24a5d20a Freeze nsIArray (requires separating nsIMutableArray into another .idl file); also removes NS_NewArray and moves do_QueryElementAt into the glue, r=darin
git-svn-id: svn://10.0.0.236/trunk@194221 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-12 15:43:32 +00:00
neil%parkwaycc.co.uk
9d884b85e2 Bug 255593 Add ReplaceElementAt to nsIMutableArray plus comment fixes p=eyalroz@technion.ac.il r=darin sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@167166 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-01 17:57:00 +00:00
darin%meer.net
0bc77e4e18 fixes bug 263957 "Convert nsProperties to nsTHashtable, implement GetKeys" r=bsmedberg sr=shaver
git-svn-id: svn://10.0.0.236/trunk@164377 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-25 19:52:48 +00:00
seawood%netscape.com
fbf12b7d65 Callback functions must be declared as such.
Fixing OS/2 tinderbox bustage.


git-svn-id: svn://10.0.0.236/trunk@131347 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-08 01:04:09 +00:00
alecf%netscape.com
36dda6d759 fix for bug 162115 - add nsCOMArray<T> and nsIArray to the build
r=dougt, sr=darin, lots of comments from brendan, kai, bugmail@sicking.cc, frank.schoenheit@gmx.de, and even a little license help from timeless


git-svn-id: svn://10.0.0.236/trunk@131314 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-07 19:03:41 +00:00
alecf%netscape.com
270dd28b76 add do_QueryElementAt, and make NS_NewArray() give you an nsIMutableArray instead of nsIArray
not part of build, for bug 162115


git-svn-id: svn://10.0.0.236/trunk@131093 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-03 20:20:13 +00:00
alecf%netscape.com
ade6404249 more work for bug 162115 - add support for weak references in nsIArray
not part of build


git-svn-id: svn://10.0.0.236/trunk@131024 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-02 21:00:42 +00:00
alecf%netscape.com
8c7efaf56b more work on bug 162115 - use "friend" to allow nsCOMArray<T>'s copy constructor to be protected, but still usable from nsArray
not part of build


git-svn-id: svn://10.0.0.236/trunk@131008 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-02 18:54:12 +00:00
alecf%netscape.com
7a97110e41 add support for a nsISimpleEnumerator implementation for nsCOMArray<T> and nsIArray, and update existing interfaces to support that:
- move nsCOMArray_base's ObjectAt/[]/Count() methods into the public so that nsCOMArrayEnumerator can get to it
- tweak NS_NewArray() to match the existing enumerator NS_New* API
- hook up NS_NewArrayEnumerator to nsArray::Enumerate
Not part of the build, for bug 162115


git-svn-id: svn://10.0.0.236/trunk@130891 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-01 17:34:25 +00:00
alecf%netscape.com
fdfa35a2b7 not part of build, more for bug 162115:
- fix some spelling, add documentation
- add NS_NewArray(), including one that takes an existing nsCOMArray<T>
- implement copy constructor for nsCOMArray_base, so that NS_NewArray can work
not part of build


git-svn-id: svn://10.0.0.236/trunk@130839 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-30 23:02:31 +00:00
alecf%netscape.com
2c0c64385c match up some reviewers comments:
- tri-license with MPL, not NPL
- be consistent with policy on null in the array (it is allowed)
- move Clear() into implementation file, and hide static callback there too
- make sure to AddRef() on the way out of nsArray::IndexOf()
- handle failure of ReplaceElementAt more gracefully
bug 162115, not part of build yet


git-svn-id: svn://10.0.0.236/trunk@130822 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-30 22:01:46 +00:00
alecf%netscape.com
e05f12a7a1 continue work-in-progress with freezable array.
Also introduce nsCOMArray<nsIFoo>
not part of build


git-svn-id: svn://10.0.0.236/trunk@130571 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-27 06:08:49 +00:00