mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 12:20:56 +00:00
Bug 1317954 - Replace default bodies of special member functions with = default; in xpcom/. r=froydnj
MozReview-Commit-ID: 5GXchMr0VvV --HG-- extra : rebase_source : ac32605ef643f67ffd0f0894f31eed8f01804e2f
This commit is contained in:
parent
42effb5bbf
commit
60bb054c02
@ -10,13 +10,9 @@
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
FileLocation::FileLocation()
|
||||
{
|
||||
}
|
||||
FileLocation::FileLocation() = default;
|
||||
|
||||
FileLocation::~FileLocation()
|
||||
{
|
||||
}
|
||||
FileLocation::~FileLocation() = default;
|
||||
|
||||
FileLocation::FileLocation(nsIFile* aFile)
|
||||
{
|
||||
|
@ -206,9 +206,7 @@ CategoryNode::Create(PLArenaPool* aArena)
|
||||
return new (aArena) CategoryNode();
|
||||
}
|
||||
|
||||
CategoryNode::~CategoryNode()
|
||||
{
|
||||
}
|
||||
CategoryNode::~CategoryNode() = default;
|
||||
|
||||
void*
|
||||
CategoryNode::operator new(size_t aSize, PLArenaPool* aArena)
|
||||
|
@ -32,7 +32,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
~nsSimpleArrayEnumerator() {}
|
||||
~nsSimpleArrayEnumerator() = default;
|
||||
|
||||
protected:
|
||||
nsCOMPtr<nsIArray> mValueArray;
|
||||
|
@ -62,9 +62,7 @@ nsCategoryObserver::nsCategoryObserver(const char* aCategory)
|
||||
}
|
||||
}
|
||||
|
||||
nsCategoryObserver::~nsCategoryObserver()
|
||||
{
|
||||
}
|
||||
nsCategoryObserver::~nsCategoryObserver() = default;
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsCategoryObserver, nsIObserver)
|
||||
|
||||
|
@ -122,9 +122,7 @@ nsSingletonEnumerator::nsSingletonEnumerator(nsISupports* aValue)
|
||||
mConsumed = (mValue ? false : true);
|
||||
}
|
||||
|
||||
nsSingletonEnumerator::~nsSingletonEnumerator()
|
||||
{
|
||||
}
|
||||
nsSingletonEnumerator::~nsSingletonEnumerator() = default;
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsSingletonEnumerator, nsISimpleEnumerator)
|
||||
|
||||
@ -201,9 +199,7 @@ nsUnionEnumerator::nsUnionEnumerator(nsISimpleEnumerator* aFirstEnumerator,
|
||||
{
|
||||
}
|
||||
|
||||
nsUnionEnumerator::~nsUnionEnumerator()
|
||||
{
|
||||
}
|
||||
nsUnionEnumerator::~nsUnionEnumerator() = default;
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsUnionEnumerator, nsISimpleEnumerator)
|
||||
|
||||
|
@ -27,9 +27,7 @@ public:
|
||||
mWord = aWord;
|
||||
}
|
||||
|
||||
~TestUniChar()
|
||||
{
|
||||
}
|
||||
~TestUniChar() = default;
|
||||
|
||||
uint32_t GetChar() const { return mWord; }
|
||||
|
||||
@ -71,7 +69,7 @@ public:
|
||||
|
||||
explicit EntityToUnicodeEntry(const char* aKey) { mNode = nullptr; }
|
||||
EntityToUnicodeEntry(const EntityToUnicodeEntry& aEntry) { mNode = aEntry.mNode; }
|
||||
~EntityToUnicodeEntry() { }
|
||||
~EntityToUnicodeEntry() = default;
|
||||
|
||||
bool KeyEquals(const char* aEntity) const { return !strcmp(mNode->mStr, aEntity); }
|
||||
static const char* KeyToPointer(const char* aEntity) { return aEntity; }
|
||||
|
@ -419,9 +419,7 @@ class ObjectForConstPtr
|
||||
{
|
||||
private:
|
||||
// Reference-counted classes cannot have public destructors.
|
||||
~ObjectForConstPtr()
|
||||
{
|
||||
}
|
||||
~ObjectForConstPtr() = default;
|
||||
public:
|
||||
NS_INLINE_DECL_THREADSAFE_MUTABLE_REFCOUNTING(ObjectForConstPtr)
|
||||
void ConstMemberFunction( int aArg1, int* aArgPtr, int& aArgRef ) const
|
||||
|
Loading…
x
Reference in New Issue
Block a user