23 Commits

Author SHA1 Message Date
bsmedberg%covad.net
112c33275c Bug 305949 Part 1 - Separate the frozen XPCOM exports with the XPCOM_API macro; add compatibility methods to the frozen string API; convert most of the tests/tools to use the xpcom glue when appropriate r=darin This checking does not actually stop exporting the nonfrozen methods yet, pending a bunch of test cleanup throughout the tree.
git-svn-id: svn://10.0.0.236/trunk@184304 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-08 18:17:49 +00:00
gerv%gerv.net
751af0272c Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@183980 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:05:20 +00:00
dbaron%dbaron.org
f9b951db56 Add nsVoidArray::FastElementAt that requires the caller to do bounds checks (0 <= aIndex < Count()). Make ElementAt a little safer without loss of speed (back to the old safety). Make nsCOMArray<T>::ObjectAt use FastElementAt. b=96108 r=darin
git-svn-id: svn://10.0.0.236/trunk@183979 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:05:19 +00:00
timeless%mozdev.org
c7de01ce89 Bug 106386 Correct misspellings in source code
Changes strings which meant "referring"
patch by ajvincent@juno.com r=timeless sr=dmose


git-svn-id: svn://10.0.0.236/trunk@183977 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:05:17 +00:00
sicking%bigfoot.com
886dad9781 Bug 225507: Implement nsCOMArray::SafeObjectAt for out-of-bounds safe access.
r=bryner sr=alecf


git-svn-id: svn://10.0.0.236/trunk@183975 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:05:15 +00:00
bsmedberg%covad.net
0b876ce56a Bug 212222 - Load default prefs from the GRE and from the application. r/sr=alecf/darin
NOTE: This is only the backend work necessary to load prefs. The actual separation of prefs into application/embedding will happen in another bug.


git-svn-id: svn://10.0.0.236/trunk@183974 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:05:14 +00:00
dbaron%dbaron.org
094062e71f nsCOMArray should not use nsDerivedSafe. b=221525 r=bryner
git-svn-id: svn://10.0.0.236/trunk@183973 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:05:13 +00:00
dougt%meer.net
7f6ea150b7 add Sort() to nsCOMArray. Patch from ari the_great_spam_bin@yahoo.com. r=alecf, b=211535
git-svn-id: svn://10.0.0.236/trunk@183970 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:05:10 +00:00
neil%parkwaycc.co.uk
e1e7049150 Bug 198685 need nsCOMArray function like IndexOf that checks COM object identity p=bsmedberg@covad.net r=alecf (no sr needed)
git-svn-id: svn://10.0.0.236/trunk@183969 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:05:09 +00:00
sicking%bigfoot.com
c55dec444f Bug 162115: Make nsCOMArray return nsDeriviedSafes to avoid bad addrefs/releases
r=bz sr=alecf


git-svn-id: svn://10.0.0.236/trunk@183948 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:48 +00:00
bzbarsky%mit.edu
e20ae20465 Make the nsCOMArray destructor release all the objects. Bug 178813,
r=bbaetz, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@183947 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:47 +00:00
mkaply%us.ibm.com
d5cf69b50b #177543
r=me, sr=bz
OS/2 build bustage - add explicit casts


git-svn-id: svn://10.0.0.236/trunk@183945 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:45 +00:00
bzbarsky%mit.edu
47d0458544 Add AppendObjects/InsertObjectsAt to nsCOMArray. Bug 175137,
r=timeless, sr=alecf, a=dbaron


git-svn-id: svn://10.0.0.236/trunk@183944 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:44 +00:00
bzbarsky%mit.edu
659f27522b Make IndexOf a const method. Bug 174940, r=dougt, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@183943 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:43 +00:00
varga%netscape.com
cbf2794035 Fix for bug 174443. nsCOMArray::ApendObject() shouldn't addref
r=dougt, sr=alecf, a=asa


git-svn-id: svn://10.0.0.236/trunk@183942 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:42 +00:00
bbaetz%student.usyd.edu.au
30d047fc13 Change the never-defined copy-constructor signature to refer to nsCOMArray<T>
instead of nsCOMArray. Should fix OS2 bustage, which noticed this because
it instantiates the function even when its not used
r=sicking, sr=mozbot, a=tinderbox


git-svn-id: svn://10.0.0.236/trunk@183940 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:40 +00:00
alecf%netscape.com
312478b22b 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@183939 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:39 +00:00
alecf%netscape.com
e27309a050 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@183938 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:38 +00:00
alecf%netscape.com
5b0d7a95bf - fix ReplaceObjectAt to properly account for existing null entries
- make nsCOMArray_base accessible from nsCOMArray<T> so that a nsCOMArray<T> can passed to NS_NewArray
for bug 162115, not part of build


git-svn-id: svn://10.0.0.236/trunk@183937 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:37 +00:00
alecf%netscape.com
f3ecff623a 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@183936 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:36 +00:00
alecf%netscape.com
beeb7ca0be 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@183935 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:35 +00:00
alecf%netscape.com
903a2ca605 continuing work in progress on nsCOMArray<T> - take darin's suggestion and move all nsISupports-related code into a non-template base class nsCOMArray_base. This allows the generated template to be paper thin (or really, non-existent!)
Then, we move some of the non-trivial methods of this class into a .cpp file


git-svn-id: svn://10.0.0.236/trunk@183934 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:34 +00:00
alecf%netscape.com
24d96b0bbd continue work-in-progress with freezable array.
Also introduce nsCOMArray<nsIFoo>
not part of build


git-svn-id: svn://10.0.0.236/trunk@183926 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 16:04:26 +00:00