зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1317430 - Avoid a unnecessary copy by passing a const & in layout/ r=mstange
MozReview-Commit-ID: AmNDwwKl7RG --HG-- extra : rebase_source : 45c06eddfd2c92959b819c614709c71b21b40e55
This commit is contained in:
Родитель
caf1487b6c
Коммит
3695654748
|
@ -38,7 +38,7 @@ friend class FrameChildListIterator;
|
|||
bool operator==(FrameChildListIDs aOther) const {
|
||||
return mIDs == aOther.mIDs;
|
||||
}
|
||||
bool operator!=(FrameChildListIDs aOther) const {
|
||||
bool operator!=(const FrameChildListIDs& aOther) const {
|
||||
return !(*this == aOther);
|
||||
}
|
||||
bool Contains(FrameChildListIDs aOther) const {
|
||||
|
@ -106,7 +106,7 @@ operator|(mozilla::layout::FrameChildListID aLeftOp,
|
|||
|
||||
inline mozilla::layout::FrameChildListIDs
|
||||
operator|(mozilla::layout::FrameChildListID aLeftOp,
|
||||
mozilla::layout::FrameChildListIDs aRightOp)
|
||||
const mozilla::layout::FrameChildListIDs& aRightOp)
|
||||
{
|
||||
return mozilla::layout::FrameChildListIDs(aLeftOp) | aRightOp;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче