Bug 1429904 - Let the compiler implement the FrameKey copy constructor for us. r=njn

MozReview-Commit-ID: 9e9rMkEAyeL

--HG--
extra : rebase_source : f803a42699b8daa8cb045db6f4048107f2d2e26e
This commit is contained in:
Markus Stange 2018-02-27 23:08:19 -05:00
parent dfbd63d53c
commit 36aeb88c58

View File

@ -183,21 +183,14 @@ public:
{
}
FrameKey(const FrameKey& aToCopy)
: mLocation(aToCopy.mLocation)
, mLine(aToCopy.mLine)
, mCategory(aToCopy.mCategory)
, mJITAddress(aToCopy.mJITAddress)
, mJITDepth(aToCopy.mJITDepth)
{
}
FrameKey(const JITAddress& aJITAddress, uint32_t aJITDepth)
: mJITAddress(mozilla::Some(aJITAddress))
, mJITDepth(mozilla::Some(aJITDepth))
{
}
FrameKey(const FrameKey& aToCopy) = default;
uint32_t Hash() const;
bool operator==(const FrameKey& aOther) const;
};