Bug 1613985 - Use default for equivalent-to-default constructors/destructors in toolkit. r=mossop

Depends on D66008

Differential Revision: https://phabricator.services.mozilla.com/D66010
This commit is contained in:
Simon Giesecke
2020-03-10 08:48:24 +00:00
parent 95e51c4807
commit 99b166167f
64 changed files with 115 additions and 118 deletions

View File

@@ -72,7 +72,7 @@ static bool ParseChunkRange(nsACString::const_iterator& aBegin,
ProtocolParser::ProtocolParser() : mUpdateStatus(NS_OK), mUpdateWaitSec(0) {}
ProtocolParser::~ProtocolParser() {}
ProtocolParser::~ProtocolParser() = default;
nsresult ProtocolParser::Begin(const nsACString& aTable,
const nsTArray<nsCString>& aUpdateTables) {
@@ -113,7 +113,7 @@ RefPtr<TableUpdate> ProtocolParser::GetTableUpdate(const nsACString& aTable) {
ProtocolParserV2::ProtocolParserV2()
: mState(PROTOCOL_STATE_CONTROL), mTableUpdate(nullptr) {}
ProtocolParserV2::~ProtocolParserV2() {}
ProtocolParserV2::~ProtocolParserV2() = default;
void ProtocolParserV2::SetCurrentTable(const nsACString& aTable) {
RefPtr<TableUpdate> update = GetTableUpdate(aTable);
@@ -708,9 +708,9 @@ RefPtr<TableUpdate> ProtocolParserV2::CreateTableUpdate(
///////////////////////////////////////////////////////////////////////
// ProtocolParserProtobuf
ProtocolParserProtobuf::ProtocolParserProtobuf() {}
ProtocolParserProtobuf::ProtocolParserProtobuf() = default;
ProtocolParserProtobuf::~ProtocolParserProtobuf() {}
ProtocolParserProtobuf::~ProtocolParserProtobuf() = default;
void ProtocolParserProtobuf::SetCurrentTable(const nsACString& aTable) {
// Should never occur.