Commit Graph

54 Commits

Author SHA1 Message Date
Ehsan Akhgari
a7f747ec15 Bug 1118486 - Part 1: Use = delete instead of MOZ_DELETE directly; r=Waldo
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:

#!/bin/bash

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "*/.git*" \
       ! -wholename "obj-*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Nicholas Nethercote
b35d1d1aa7 Bug 1058388 - Remove NS_COM_GLUE and IMETHOD_VISIBILITY. r=bsmedberg. 2014-08-27 15:47:27 -07:00
Ehsan Akhgari
c60f82c778 Bug 1045065 - Fix some bad implicit constructors in xpcom; r=froydnj 2014-07-28 13:19:06 -04:00
Birunthan Mohanathas
8a4a4c8465 Bug 1022456 - Fix modelines in xpcom/{base,glue,io,string,threads}/. r=froydnj 2014-06-30 08:39:45 -07:00
Birunthan Mohanathas
ce774b1fa6 Bug 1022456 - Convert xpcom/glue/ to Gecko style. r=froydnj 2014-06-26 18:35:39 -07:00
Ms2ger
d4fda6698d Bug 1025022 - Pass T* to nsCOMArray::Contains; r=NeilAway 2014-06-20 12:32:50 +02:00
Andrew McCreight
40cb1d1a59 Bug 1008420, part 2 - Split out a refcountless nsArray base class. r=bsmedberg 2014-05-15 09:52:58 -07:00
Joshua Cranmer
3b3b4438b1 Bug 450881: Add helpers for XPIDL arrays to nsCOMArray, r=froydnj 2014-01-22 16:19:00 -06:00
Wes Kocher
d231c2bf30 Backed out changeset 03bdec48d0ac (bug 450881) for Windows build bustage 2014-01-21 18:13:21 -08:00
Joshua Cranmer
887c344d82 Bug 450881: Add helpers for XPIDL arrays to nsCOMArray, r=froydnj 2014-01-21 18:01:36 -06:00
Andrew McCreight
d00073ee47 Bug 947626 - Fix index types in nsCOMArray CC helpers and remove whitespace. r=froydnj 2013-12-08 08:56:00 -08:00
Birunthan Mohanathas
d655a19190 Bug 784739 - Switch from NULL to nullptr in xpcom/ (2/3); r=ehsan 2013-10-10 16:41:39 -04:00
Catalin Iacob
f88cdc0744 Bug 798914 (part 5) - Use newly introduced mozilla::MallocSizeOf instead of nsMallocSizeOfFun. r=njn. 2013-06-23 14:03:39 +02:00
Ehsan Akhgari
95a1475bfa Bug 856455 - Make nsCOMArray::SetCapacity return void; r=bsmedberg 2013-03-31 16:06:18 -04:00
Ehsan Akhgari
d880052f86 Bug 853548 - Make nsTArray::SetCapacity and InfallibleTArray::SetCapacity return void; r=jlebar 2013-03-21 15:02:20 -04:00
Neil Rashbrook
175705fc54 Bug 493711 Provide an nsTArray-like API for nsCOMArray r=sicking 2013-02-04 22:05:40 +00:00
Neil Rashbrook
5b02cddb7d Bug 493711 Part 1b: remove transitive nsVoidArray dependence through nsCOMArray r=sicking 2012-12-21 10:09:50 +00:00
Neil Rashbrook
b64701bcf5 Bug 493711 Part 1: switch nsCOMArray from nsVoidArray to nsTArray r=sicking 2012-12-19 21:33:54 +00:00
Benoit Jacob
91462c5c63 Bug 806279 - CC macros refactoring: part 3: fold the TRAVERSE_NATIVE and AMBIGUOUS cases - r=mccr8,smaug 2012-11-15 02:32:39 -05:00
Benoit Jacob
b20f6f40ba Bug 806279 - CC macros refactoring: part 1: implement type-generic CC UNLINK/TRAVERSE macros - r=mccr8,smaug 2012-11-15 02:32:39 -05:00
Ehsan Akhgari
243c878d26 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Gervase Markham
cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Nicholas Nethercote
adee4b2e06 Bug 671299 (part 1) - Add ns{Void,COM}Array::SizeOfExcludingThis(). r=bz. 2012-01-02 18:18:26 -08:00
Jeff Walden
edbb60f3de Bug 711647 - Add MOZ_DELETE to a bunch of deliberately-not-implemented methods across the tree. r=dbaron 2011-12-16 14:42:07 -05:00
Ehsan Akhgari
478ad1a412 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu
0fe7772ece Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
Ehsan Akhgari
1bb15589a7 Bug 643885 - Part 1: Add the new RemoveObjectsAt API to nsCOMArray; r=bsmedberg 2011-04-14 10:18:02 -04:00
Jonathan Watt
d11d2e6829 Bug 551299. Add a SetCount() method to nsCOMArray and nsVoidArray. r=bsmedberg. 2010-03-15 11:38:50 +00:00
Arpad Borsos
1b55360c07 Bug 456388 - Remove PR_STATIC_CALLBACK and PR_CALLBACK(_DECL) from the tree; r+sr=brendan 2008-10-10 17:04:34 +02:00
98de634631 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. 2007-07-08 00:08:04 -07:00
cvshook@sicking.cc
fe6ac73f2b Bug 327256: Give nsCOMArray ability to preallocate storage space. r/sr=darin 2006-02-18 05:54:47 +00:00
bsmedberg@covad.net
9e9855ed0a 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. 2005-11-08 18:17:49 +00:00
gerv@gerv.net
f13c2950dc Bug 236613: change to MPL/LGPL/GPL tri-license. 2005-11-02 16:05:20 +00:00
dbaron@dbaron.org
4c4d80ed55 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 2005-11-02 16:05:19 +00:00
timeless@mozdev.org
0036281561 Bug 106386 Correct misspellings in source code
Changes strings which meant "referring"
patch by ajvincent@juno.com r=timeless sr=dmose
2005-11-02 16:05:17 +00:00
sicking@bigfoot.com
55c4118275 Bug 225507: Implement nsCOMArray::SafeObjectAt for out-of-bounds safe access.
r=bryner sr=alecf
2005-11-02 16:05:15 +00:00
bsmedberg@covad.net
5188d97789 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.
2005-11-02 16:05:14 +00:00
dbaron@dbaron.org
b90c5a7f09 nsCOMArray should not use nsDerivedSafe. b=221525 r=bryner 2005-11-02 16:05:13 +00:00
dougt@meer.net
dbbc5d8e60 add Sort() to nsCOMArray. Patch from ari the_great_spam_bin@yahoo.com. r=alecf, b=211535 2005-11-02 16:05:10 +00:00
neil@parkwaycc.co.uk
a49e7ae000 Bug 198685 need nsCOMArray function like IndexOf that checks COM object identity p=bsmedberg@covad.net r=alecf (no sr needed) 2005-11-02 16:05:09 +00:00
sicking@bigfoot.com
522bd31ca1 Bug 162115: Make nsCOMArray return nsDeriviedSafes to avoid bad addrefs/releases
r=bz sr=alecf
2005-11-02 16:04:48 +00:00
bzbarsky@mit.edu
1a4bfeb2c0 Make the nsCOMArray destructor release all the objects. Bug 178813,
r=bbaetz, sr=rpotts
2005-11-02 16:04:47 +00:00
mkaply@us.ibm.com
4b19fed6a2 #177543
r=me, sr=bz
OS/2 build bustage - add explicit casts
2005-11-02 16:04:45 +00:00
bzbarsky@mit.edu
0a2346ed72 Add AppendObjects/InsertObjectsAt to nsCOMArray. Bug 175137,
r=timeless, sr=alecf, a=dbaron
2005-11-02 16:04:44 +00:00
bzbarsky@mit.edu
fbbacb416d Make IndexOf a const method. Bug 174940, r=dougt, sr=alecf 2005-11-02 16:04:43 +00:00
varga@netscape.com
f1a5e85be7 Fix for bug 174443. nsCOMArray::ApendObject() shouldn't addref
r=dougt, sr=alecf, a=asa
2005-11-02 16:04:42 +00:00
bbaetz@student.usyd.edu.au
67ea5b7cdb 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
2005-11-02 16:04:40 +00:00
alecf@netscape.com
be8d2704ba 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
2005-11-02 16:04:39 +00:00
alecf@netscape.com
8fa85f6146 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
2005-11-02 16:04:38 +00:00
alecf@netscape.com
21503c0df9 - 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
2005-11-02 16:04:37 +00:00