Eric Rahm
478755933a
Bug 1351732 - Part 2: Replace use of PLArena with ArenaAllocator in xpcom. r=froydnj
...
This swaps xpcom's plarena usage to ArenaAllocator. The new ArenaStrdup
extensions are used as well.
MozReview-Commit-ID: DHDfl6IkGJL
2017-03-30 16:46:58 -07:00
Nicholas Nethercote
3873d0c8f6
Bug 1295053 (part 4) - Don't use NS_METHOD for remaining xpcom functions. r=froydnj.
...
These don't need __stdcall on Win32.
--HG--
extra : rebase_source : 19e4bf0d67b7fe25f53c0cff24471ef23d26dcf0
2016-08-15 14:49:26 +10:00
Nicholas Nethercote
7cc5e1d84e
Bug 1268772 (part 5) - Use MOZ_MUST_USE in other parts of xpcom/ds/. r=erahm.
...
As well as adding MOZ_MUST_USE to a number of functions, this patch:
- Changes the return type of nsObserverList::GetObserverList() from |nsresult|
to |void|, because it always returned NS_OK and none of the callers checked
the result.
- Removes an unnecessary |new| check in nsSupportsArray::Enumerate().
--HG--
extra : rebase_source : 3a93124ef2a7db3929119194ceacbc56bc80d2c6
2016-04-28 17:11:17 +10:00
Nicholas Nethercote
647b520991
Bug 1201135 - Rename pldhash.{h,cpp} to PLDHashTable.{h,cpp}. r=mccr8.
...
--HG--
rename : xpcom/glue/pldhash.cpp => xpcom/glue/PLDHashTable.cpp
rename : xpcom/glue/pldhash.h => xpcom/glue/PLDHashTable.h
extra : rebase_source : 06b9d30db96ed78500fd44d9c0b51609103508a3
2015-09-15 20:49:53 -07:00
Nicholas Nethercote
e849e6588b
Bug 1170416 (part 3) - Remove the PLDHashTable2 typedef. r=froydnj.
...
--HG--
extra : rebase_source : 9510ea47204fffa163cac43aeaaac6ae1ad80419
2015-05-19 16:46:17 -07:00
Nicholas Nethercote
e90de3e5e0
Bug 1166586 (part 2) - Convert some easy PL_DHashTable{Init,Finish} cases. r=froydnj.
...
This patch converts easy cases, i.e. where the PL_DHashTableInit() call occurs
in a constructor and the PL_DHashTableFinish() call occurs in a destructor.
--HG--
extra : rebase_source : d8dc450f80ac23b8455141b471cc9ae823e1e384
2015-05-04 22:59:24 -07:00
Andrew McCreight
1e0f87e27d
Bug 1151541, part 2 - Fix mode lines in xpcom/. r=froydnj
2015-04-09 10:25:05 -07:00
Ehsan Akhgari
883849ee32
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-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 MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Ehsan Akhgari
3bf8f8296a
Bug 1122989 - Remove nsIPersistentProperties::Subclass(); r=froydnj
...
This method is unused, and more importantly it causes us to store an
unsafe reference in nsPersistentProperties. It's best to remove it.
2015-01-19 08:59:01 -05:00
Nicholas Nethercote
27ab169068
Bug 1121304 (part 1, attempt 2) - Minor type clean-ups for PLDHashTable. r=froydnj.
...
--HG--
extra : rebase_source : cccc747bf900804a566853d8eb7f16cf82a26978
2015-01-14 14:35:45 -08:00
Phil Ringnalda
e39f0adeca
Backed out 2 changesets (bug 1121304) for consistent b2g hangs in webgl-color-test.html?frame=1&__&preserve&premult&_____
...
Backed out changeset 20651ac19549 (bug 1121304)
Backed out changeset 758afec77c95 (bug 1121304)
2015-01-14 22:02:23 -08:00
Nicholas Nethercote
41dc319a7c
Bug 1121304 (part 1) - Minor type clean-ups for PLDHashTable. r=froydnj.
2015-01-14 14:35:45 -08:00
Birunthan Mohanathas
68ba4f3767
Bug 1022456 - Convert xpcom/ds/ to Gecko style. r=froydnj
2014-07-09 08:15:21 -07:00
Andrew McCreight
84553968b8
Bug 975037, part 1 - Inline nsPersistentProperties::Init. r=froydnj
2014-02-27 10:04:10 -08:00
Andrew McCreight
0353960345
Bug 962608 - Make PL_DHashTableInit infallible by default. r=briansmith,bsmedberg,ehsan,froydnj,jduell,jfkthame,roc,smaug
2014-02-27 10:04:09 -08:00
Ehsan Akhgari
7233ba7103
Bug 918923 - Part 2: Switch to #including nsString.h in code using the internal strings API; r=bsmedberg
2013-09-23 13:25:00 -04:00
Ehsan Akhgari
08772d21ac
Bug 918105 - Minimize the #includes in xpcom/ds; r=bsmedberg
2013-09-19 15:31:21 -04:00
Joshua Cranmer
1a6dffc73f
Bug 884061 - Part 3y: Use NS_DECL_THREADSAFE_ISUPPORTS in xpcom/, r=bsmedberg
...
--HG--
extra : rebase_source : d54f6973e3ff859207115013e8361781769ffc76
2013-07-18 21:31:26 -05:00
Ehsan Akhgari
df3797a6e7
Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (XPCOM parts); r=bsmedberg
2012-06-05 19:51:58 -04:00
Gervase Markham
82ff7027aa
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Benjamin Smedberg
c611ebcd81
Bug 568691 part A - register static and binary components using data tables rather than programmatic nsIComponentRegistrar methods. This part contains the important needs-review bits of the change: part B contains the mechanical changes to each module in order to actually get a working build. Part C will contain changes necessary to register JS components from .manifest files
2010-06-10 14:11:11 -04:00
Michal Novotny
b3c9502fcb
Bug 121341. Switch nsPersistentProperties::Load from reading a char at a time to reading a block at a time, with a state-machine parser and all. r=bsmedberg, sr=bzbarsky
2008-08-07 17:05:19 -04:00
gerv%gerv.net
31625ba2b1
Bug 236613: change to MPL/LGPL/GPL tri-license.
2004-04-18 14:21:17 +00:00
bryner%brianryner.com
0c7c3a2ff3
Bug 229875 - eliminate unnecssary public/virtual destructors. This patch changes all refcounted classes under xpcom/, which aren't inherited from or used on the stack, to have private, nonvirtual destructors. r=dougt, sr=dbaron.
2004-01-15 06:14:18 +00:00
jaggernaut%netscape.com
83c571e877
Bug 25886: Get rid of a bunch of unused NS_DEFINE_IID, NS_DEFINE_CID. r=caillon, sr=dbaron
2003-07-20 07:47:59 +00:00
timeless%mozdev.org
ffc2007ca1
Bug 211277 nsPersistentProperties::nsPersistentProperties doesn't check the return value of PL_DHashTableInit
...
r=alecf sr=dbaron
2003-07-14 21:07:31 +00:00
alecf%netscape.com
1e643be2a6
back out 121341 and all subsequent regression fixes - there are still regressions and this just isn't worth being broken for 1.3.. I'll check this back in when 1.4a comes along and we have more time in the milestone to catch regressions.
...
a=dbaron
2003-02-04 05:43:57 +00:00
alecf%netscape.com
ab070553d6
fix for bug 121341 - make nsPersistentProperties::Load sane. don't make a virtual call for every character read in from the .properties file!
2003-01-22 05:15:40 +00:00
dbaron%dbaron.org
b9083989bb
Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
2003-01-08 23:19:20 +00:00
alecf%netscape.com
2dded12ab7
fix for bug 164575 - clean nsIPersistentProperties interface to reduce UTF8/UCS2 conversions
...
r=dougt, sr=darin
2002-08-30 17:13:34 +00:00
alecf%netscape.com
8aff49891f
fix for bug 153754 - make nsPersistentProperties (and thus string bundles) use PLDHash, saving some 1100+ allocations at startup.
...
r=dougt, sr=dveditz
2002-06-26 01:33:07 +00:00
dbaron%fas.harvard.edu
dd543d9155
Fix massive numbers of threadsafety assertions by re-adding NS_INIT_ISUPPORTS, to make builds usable again. b=110531 sr=waterson
2001-12-04 05:26:46 +00:00
alecf%netscape.com
917e1454a4
fix for bug 110531, r=dougt, jag, sr=darin - moving ConverterInputStream into uconv, and changing the one in XPCOM into an UTF8-only converter
2001-12-04 01:10:43 +00:00
bzbarsky%mit.edu
27a85339ae
Make nsICharsetAlias::GetPreferred() and nsICharsetAlias::Equals() take
...
nsAStrings instead of nsStrings. Bug 102096, r=ftang,jag. sr=shaver
2001-09-30 04:01:15 +00:00
gerv%gerv.net
4e12e44b2f
Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
2001-09-28 20:14:13 +00:00
jbetak%netscape.com
760b0b4322
fix bustage
...
37408
String bundle doesn't offer a scriptable enumerator
r=be
2000-05-02 06:27:05 +00:00
jbetak%netscape.com
c0fdb39f76
37408
...
String bundle doesn't offer a scriptable enumerator
r=be
2000-05-02 05:08:39 +00:00
warren%netscape.com
538b2ca40f
Breaking out persistent properties from nsIProperties.h.
1999-12-29 20:55:42 +00:00