Boris Zbarsky
0f1b6a336f
Bug 1551782. Remove now-unused nsCOMArray::Forget and nsCOMArray::Adopt methods. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D31246
2019-05-16 15:13:44 +00:00
Sylvestre Ledru
e5a134f73a
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Mike Hommey
261761b534
Bug 1407838 - Remove the remains of NS_Alloc/NS_Realloc/NS_Free. r=njn
...
Bug 1134923 removed the use of those functions in gecko, and left some
for the XPCOM standalone glue. The XPCOM standalone glue was severely
stripped down in bug 1306327, with the effect of removing the
implementation for those functions.
The remains in nsXPCOM.h are:
XPCOM_API(void*) NS_Alloc(size_t aSize);
XPCOM_API(void*) NS_Realloc(void* aPtr, size_t aSize);
XPCOM_API(void) NS_Free(void* aPtr);
With no implementation left, the first arm is never actually used, and
the second arm means every remaining use of those functions in the tree
is a macro expansion to one of moz_xmalloc, moz_xrealloc or free.
2017-10-12 11:08:44 +09:00
Philippe Normand
b1388a3f60
Bug 1404302 - Include nsQuickSort.h in nsCOMArray.cpp. r=froydnj
...
This fixes the build in non-unified mode, as nsCOMArray::Sort() method uses
NS_QuickSort().
MozReview-Commit-ID: CDBLIX8D3mL
2017-09-28 14:30:29 +01:00
Benjamin Smedberg
ceef2817a3
Bug 1332631 part C - file moves from xpcom/glue to xpcom/ds, r=froydnj
...
MozReview-Commit-ID: 9ZhC5bROWdO
2017-01-20 13:59:21 -05:00
[email protected]
792ca79466
Bug 289010 - Move nsVoidArray/nsCOMArray to the XPCOM glue, and a few other things to make the glue easier to use, r=shaver+darin . The following files were CVS-copied from xpcom/ds to xpcom/glue: nsVoidArray.h nsVoidArray.cpp nsCOMArray.h nsCOMArray.cpp nsQuickSort.h nsQuickSort.cpp
2005-11-02 20:39:39 +00:00
[email protected]
db4284f560
nsCOMArray::RemoveObjectAt fails to remove nulls correctly. Bug 265772,
...
r=darin, sr=dbaron
2004-10-24 17:24:25 +00:00
[email protected]
8326ed17dc
Make ReplaceObjectAt a little safer. Bug 227780, r=timeless, sr=alecf
2004-01-05 23:43:28 +00:00
[email protected]
ce7a9b36e7
nsCOMArray should not use nsDerivedSafe. b=221525 r=bryner
2003-10-07 23:17:58 +00:00
[email protected]
a7d8bff808
Bug 198685 need nsCOMArray function like IndexOf that checks COM object identity [email protected] r=alecf (no sr needed)
2003-03-25 13:16:02 +00:00
[email protected]
4b4722930f
fix build bustage
2003-03-20 03:40:26 +00:00
[email protected]
5cdeea50a1
fix an assertion from nsCOMArray where ReplaceElementAt() wouldn't property extend the array because we were just using ObjectAt()
...
residual stuff from bug 197827, which caused an assertion browsing frame
patch by [email protected] , r/sr=alecf
2003-03-20 02:34:11 +00:00
[email protected]
89ae75763f
Bug 162115: Make nsCOMArray return nsDeriviedSafes to avoid bad addrefs/releases
...
r=bz sr=alecf
2003-01-18 14:04:23 +00:00
[email protected]
93703cf054
Make the nsCOMArray destructor release all the objects. Bug 178813,
...
r=bbaetz, sr=rpotts
2002-11-07 13:34:18 +00:00
[email protected]
dd341d2628
nsCOMArray_base copy constructor should not assert. Bug 178534,
...
r=dougt, sr=alecf
2002-11-06 02:00:50 +00:00
[email protected]
6ebc9e5b1f
Add AppendObjects/InsertObjectsAt to nsCOMArray. Bug 175137,
...
r=timeless, sr=alecf, a=dbaron
2002-10-25 01:40:50 +00:00
[email protected]
b2de8f89d9
Fix for bug 174443. nsCOMArray::ApendObject() shouldn't addref
...
r=dougt, sr=alecf, a=asa
2002-10-15 23:59:20 +00:00
[email protected]
8c66263974
OS/2 bustage - need PR_CALLBACK
2002-10-07 21:32:37 +00:00
[email protected]
abbb755380
- 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
2002-10-01 00:37:41 +00:00
[email protected]
4939acab42
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
2002-09-30 23:02:31 +00:00
[email protected]
aa8a069568
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
2002-09-30 22:01:46 +00:00
[email protected]
4158d10065
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
2002-09-27 19:29:45 +00:00