9 Commits

Author SHA1 Message Date
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