Thomas Wisniewski
ba6cb5196e
Bug 1305202 - Use NullString() more and remove superfluous Truncates(). r=smaug
2016-09-23 21:10:01 -04:00
Nicholas Nethercote
27327f8bea
Bug 1268772 (part 2) - Make infallible nsVariant methods return |void| instead of |nsresult|. r=erahm.
...
This makes things clearer and removes some unnecessary nsresult checks.
The patch also:
- removes some unnecessary |new| and moz_xmalloc() checks;
- adds MOZ_MUST_USE to some fallible nsVariant methods.
--HG--
extra : rebase_source : fd0bd0c55c22ebf194246ec9997fe971cf282e69
2016-04-29 13:47:44 +10:00
Chris Peterson
4cbe614b32
Bug 1220035 - Fix -Wimplicit-fallthrough warnings in xpcom. r=mccr8
...
xpcom/base/nsDebugImpl.cpp:458:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/ds/nsCheapSets.h:139:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/ds/nsPersistentProperties.cpp:232:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/ds/nsVariant.cpp:360:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/ds/nsVariant.cpp:766:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/ds/nsVariant.cpp:1658:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/ds/nsVariant.cpp:1661:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/glue/nsTextFormatter.cpp:355:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/glue/nsTextFormatter.cpp:362:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/io/nsWildCard.cpp:85:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/io/nsWildCard.cpp:401:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2015-10-29 21:31:32 -07:00
Andrew McCreight
c97953414d
Bug 931283, part 3 - Implement a cycle collected version of nsVariant. r=froydnj
...
Also, use this class for the component manager etc. in XPCOM.
2015-10-09 10:24:23 -07:00
Andrew McCreight
642c4344e2
Bug 931283, part 2 - Split out nsVariant into a subclass. r=froydnj
2015-10-09 10:24:23 -07:00
Andrew McCreight
747f1dd47c
Bug 931283, part 1 - Rename nsVariant to nsVariantBase. r=froydnj
...
Leave a typedef for compatibility. nsVariant will be defined as a
separate class in the next patch.
Also, remove an obsolete comment and fix some whitespace.
2015-10-09 10:24:23 -07:00
Chris Peterson
0dbaae1ce2
Bug 1204403 - Fix -Wshadow warnings in xpcom. r=mccr8
2015-09-07 23:56:16 -07:00
Birunthan Mohanathas
7315345693
Bug 1191100
- Remove XPIDL signature comments in .cpp files. r=ehsan
...
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
Andrew McCreight
18401c9409
Bug 931571, part 15 - Remove extra spaces in nsVariant macros. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
13e2d3a560
Bug 931571, part 13 - Add a destructor for nsDiscriminatedUnion. r=froydnj
...
The existing nsDiscriminateUnions either always call Cleanup() when they
are about to go away, or they only handle scalar values so it is safe to
call Cleanup() on them without worrying about another discriminated union
having taken over any memory owned by this union.
2015-07-23 12:28:30 -07:00
Andrew McCreight
0994e4e4ed
Bug 931571, part 12 - Add nsDiscriminatedUnion::GetType(). r=froydnj
...
This is not quite enough to make the data members private because
XPCVariant pokes around to do some JS array stuff.
2015-07-23 12:28:30 -07:00
Andrew McCreight
4bdbcd2020
Bug 931571, part 11 - Turn nsDiscriminatedUnion's Traverse function into a method. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
2cca253ff3
Bug 931571, part 10 - Turn SetFromVariant into a method. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
cb922209d3
Bug 931571, part 9 - Turn most of the nsVariant setters into nsDiscriminated methods. r=froydnj
...
This also adds a new nsDiscriminatedUnion method SetFromDOMString, as somebody added an nsVariant method without the corresponding helper.
2015-07-23 12:28:30 -07:00
Andrew McCreight
8c28737b59
Bug 931571, part 8 - Turn ConvertToISupports, ConvertToInterface and ConvertToArray to methods. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
219f81d45f
Bug 931571, part 7 - Turn ConvertTo*String and ToString into methods. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
83b488957d
Bug 931571, part 6 - Make ConvertToID and String2ID into methods. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
6c297a19d4
Bug 931571, part 5 - Turn basic ConvertTo functions into methods. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
cadbb45b7f
Bug 931571, part 4 - Fix some spacing inside macros.
...
There's more that could be done to fix the style, but this was bothering me.
2015-07-23 12:28:30 -07:00
Andrew McCreight
79e1884b62
Bug 931571, part 3 - Rename return value of macro generated methods. r=froydnj
2015-07-23 12:28:29 -07:00
Andrew McCreight
ca92d9ebc0
Bug 931571, part 2 - Convert Cleanup() and FreeArray() to methods. r=froydnj
2015-07-23 12:28:29 -07:00
Andrew McCreight
7b7d1a30b8
Bug 931571, part 1 - Use a constructor for nsDiscriminatedUnion. r=froydnj
2015-07-23 12:28:29 -07:00
Mike Hommey
924c9eb636
Bug 1134923 - Remove NS_Alloc/NS_Realloc/NS_Free. r=nfroyd
...
They are kept around for the sake of the standalone glue, which is used
for e.g. webapprt, which doesn't have direct access to jemalloc, and thus
still needs a wrapper to go through the xpcom function list and get to
jemalloc from there.
2015-05-01 09:40:30 +09:00
Andrew McCreight
1e0f87e27d
Bug 1151541, part 2 - Fix mode lines in xpcom/. r=froydnj
2015-04-09 10:25:05 -07:00
Mike Hommey
b077d9624d
Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd
2015-04-01 13:51:45 +09:00
Jan de Mooij
cda5c814db
Bug 1034627 part 6 - Fix XPCVariant to work with Latin1 strings and nursery strings. r=bholley
...
--HG--
extra : rebase_source : be029c174195192570da688250583157825e9e06
2014-07-11 09:38:55 +02:00
Carsten "Tomcat" Book
eb71d8cf86
Backed out changeset 110e44b996f8 (bug 1034627) for Valgrind Testfailures on a CLOSED TREE
2014-07-11 11:00:21 +02:00
Jan de Mooij
8ff8c31410
Bug 1034627 part 6 - Fix XPCVariant to work with Latin1 strings and nursery strings. r=bholley
2014-07-11 09:38:55 +02:00
Birunthan Mohanathas
68ba4f3767
Bug 1022456 - Convert xpcom/ds/ to Gecko style. r=froydnj
2014-07-09 08:15:21 -07:00
Birunthan Mohanathas
5f1fde8824
Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj
2014-04-27 03:06:00 -04:00
Tom Schuster
f39e81815a
Bug 939294 - Change xpidl jsval to handles. r=gabor,bz,khuey,bsmedberg,terrence
2014-01-09 18:39:36 +01:00
Ehsan Akhgari
1b83407ce9
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.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 PRUnichar char16_t
2014-01-04 10:02:17 -05: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
Andrew Quartey
0a078468c0
Bug 792581 - part 21: Replace LL_F2L and LL_D2L macros. r=ehsan
2012-10-25 19:25:58 -04:00
Andrew Quartey
3f4e29b9f0
Bug 792581 - part 20: Replace LL_UI2L macro with int64_t cast. r=ehsan
2012-10-25 19:25:57 -04:00
Andrew Quartey
00edc52f9c
Bug 792581 - part 19: Replace LL_I2L macro with int64_t cast. r=ehsan
2012-10-12 13:29:11 -04:00
Andrew Quartey
8191e9c8c1
Bug 792581 - part 18: Replace LL_L2D macro with double cast. r=ehsan
2012-10-12 13:29:11 -04:00
Randell Jesup
65539ef89c
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
2012-09-01 22:35:17 -04:00
Ehsan Akhgari
e368dc9c85
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
Aryeh Gregor
d0ad5a7d0c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Joshua Cranmer
a1186c1020
Bug 773637 - Kill NS_SCRIPTABLE annotations, Part 1: Remove NS_*PARAM annotations. r=ehsan
...
--HG--
extra : rebase_source : a0b4bc50fece36d9a90fed61431635948bfa33b5
2012-07-06 15:14:07 -05:00
Shriram Kunchanapalli
5b9a95ea6a
Bug 743581: Removes nsCRT::strlen(const PRUnichar*). f=sgautherie r=dougt
2012-05-30 18:43:39 +01:00
Gervase Markham
82ff7027aa
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Ryan VanderMeulen
503ea93a8c
Backout 17deb5f61b4d (bug 150073) due to build bustage. a=shouldausedtryfirst
2012-04-03 20:22:42 -04:00
Shriram Kunchanapalli
dcbb9c3017
Bug 150073 - Remove nsCRT:: in nsCRT::strlen. f=sgautherie, r=dougt
2012-02-18 19:17:01 +05:30
Andrew McCreight
821eb101a0
Bug 720292 - add more cycle collector edge names. r=smaug
2012-01-23 15:25:53 -08:00
Neil Rashbrook
daba677bf4
Bug 698256 Add and use Substring(data, length) convenience method r=dbaron
2011-12-09 08:35:41 +00:00
Ehsan Akhgari
92064e6d3f
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
d2b70213ac
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
...
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00