Bug 784739 - Switch from NULL to nullptr in xpcom/ (2/3); r=ehsan

This commit is contained in:
Birunthan Mohanathas
2013-10-10 16:41:39 -04:00
parent 52e24d677b
commit d655a19190
34 changed files with 171 additions and 165 deletions

View File

@@ -165,11 +165,11 @@ public:
(nsISupports* aElement, mozilla::MallocSizeOf aMallocSizeOf, void *aData);
// Measures the size of the array's element storage, and if
// |aSizeOfElement| is non-NULL, measures the size of things pointed to by
// elements.
// |aSizeOfElement| is non-nullptr, measures the size of things pointed to
// by elements.
size_t SizeOfExcludingThis(
nsBaseArraySizeOfElementIncludingThisFunc aSizeOfElementIncludingThis,
mozilla::MallocSizeOf aMallocSizeOf, void* aData = NULL) const;
mozilla::MallocSizeOf aMallocSizeOf, void* aData = nullptr) const;
private:
@@ -381,7 +381,7 @@ class nsCOMArray : public nsCOMArray_base
size_t SizeOfExcludingThis(
nsCOMArraySizeOfElementIncludingThisFunc aSizeOfElementIncludingThis,
mozilla::MallocSizeOf aMallocSizeOf, void *aData = NULL) const {
mozilla::MallocSizeOf aMallocSizeOf, void *aData = nullptr) const {
return nsCOMArray_base::SizeOfExcludingThis(
nsBaseArraySizeOfElementIncludingThisFunc(aSizeOfElementIncludingThis),
aMallocSizeOf, aData);