10 Commits

Author SHA1 Message Date
sicking%bigfoot.com
736d455dc3 Bug 162115: Make nsCOMArray return nsDeriviedSafes to avoid bad addrefs/releases
r=bz sr=alecf


git-svn-id: svn://10.0.0.236/trunk@136593 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-18 14:04:23 +00:00
bzbarsky%mit.edu
9d0e916e54 Make the nsCOMArray destructor release all the objects. Bug 178813,
r=bbaetz, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@133295 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 13:34:18 +00:00
bzbarsky%mit.edu
6f34f01f3d nsCOMArray_base copy constructor should not assert. Bug 178534,
r=dougt, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@133068 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-06 02:00:50 +00:00
bzbarsky%mit.edu
31e4da2ff8 Add AppendObjects/InsertObjectsAt to nsCOMArray. Bug 175137,
r=timeless, sr=alecf, a=dbaron


git-svn-id: svn://10.0.0.236/trunk@132489 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-25 01:40:50 +00:00
varga%netscape.com
f1626347cb Fix for bug 174443. nsCOMArray::ApendObject() shouldn't addref
r=dougt, sr=alecf, a=asa


git-svn-id: svn://10.0.0.236/trunk@132048 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-15 23:59:20 +00:00
mkaply%us.ibm.com
d816a450a4 OS/2 bustage - need PR_CALLBACK
git-svn-id: svn://10.0.0.236/trunk@131333 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-07 21:32:37 +00:00
alecf%netscape.com
82affdbd0d - 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@130857 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-01 00:37:41 +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
49dbdd1151 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@130604 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-27 19:29:45 +00:00