Skip to content

Commit

Permalink
Bug 1316290 - Replace default bodies of special member functions with…
Browse files Browse the repository at this point in the history
… = default, in layout. r=dholbert

MozReview-Commit-ID: LJiBYdYD1S5
  • Loading branch information
abpostelnicu committed Nov 9, 2016
1 parent 515c750 commit 6c400ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions layout/base/nsRefreshDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ class VsyncRefreshDriverTimer : public RefreshDriverTimer
}
}
private:
~RefreshDriverVsyncObserver() {}
~RefreshDriverVsyncObserver() = default;

void RecordTelemetryProbes(TimeStamp aVsyncTimestamp)
{
Expand Down Expand Up @@ -866,7 +866,7 @@ class VsyncChildCreateCallback final : public nsIIPCBackgroundChildCreateCallbac
}

private:
virtual ~VsyncChildCreateCallback() {}
virtual ~VsyncChildCreateCallback() = default;

void ActorCreated(PBackgroundChild* aPBackgroundChild) override
{
Expand Down
4 changes: 1 addition & 3 deletions layout/style/nsCSSRuleProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -770,9 +770,7 @@ struct SelectorPair
MOZ_ASSERT(aSelector);
MOZ_ASSERT(mRightmostSelector);
}
SelectorPair(const SelectorPair& aOther)
: mSelector(aOther.mSelector)
, mRightmostSelector(aOther.mRightmostSelector) {}
SelectorPair(const SelectorPair& aOther) = default;
nsCSSSelector* const mSelector;
nsCSSSelector* const mRightmostSelector;
};
Expand Down

0 comments on commit 6c400ec

Please sign in to comment.