Skip to content

Commit

Permalink
Bug 1613985 - Use default for equivalent-to-default constructors/dest…
Browse files Browse the repository at this point in the history
…ructors in dom/messagechannel. r=smaug

Depends on D66018

Differential Revision: https://phabricator.services.mozilla.com/D66019

--HG--
extra : moz-landing-system : lando
  • Loading branch information
sigiesec committed Mar 9, 2020
1 parent 1ee2c28 commit f15d114
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dom/messagechannel/MessageChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ MessageChannel::MessageChannel(nsIGlobalObject* aGlobal) : mGlobal(aGlobal) {
MOZ_ASSERT(aGlobal);
}

MessageChannel::~MessageChannel() {}
MessageChannel::~MessageChannel() = default;

JSObject* MessageChannel::WrapObject(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) {
Expand Down
2 changes: 1 addition & 1 deletion dom/messagechannel/MessagePort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class PostMessageRunnable final : public CancelableRunnable {
}

private:
~PostMessageRunnable() {}
~PostMessageRunnable() = default;

RefPtr<MessagePort> mPort;
RefPtr<SharedMessageBody> mData;
Expand Down
2 changes: 1 addition & 1 deletion dom/messagechannel/MessagePortService.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class MessagePortService final {
const uint32_t& aSequenceID);

private:
~MessagePortService() {}
~MessagePortService() = default;

void CloseAll(const nsID& aUUID, bool aForced = false);
void MaybeShutdown();
Expand Down

0 comments on commit f15d114

Please sign in to comment.