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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user