diff options
Diffstat (limited to 'gfx/2d/Rect.h')
-rw-r--r-- | gfx/2d/Rect.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx/2d/Rect.h b/gfx/2d/Rect.h index 942cb200db..d17b802434 100644 --- a/gfx/2d/Rect.h +++ b/gfx/2d/Rect.h @@ -166,7 +166,7 @@ struct IntRectTyped : // Same as Union(), but in the cases where aRect is non-empty, the union is // done while guarding against overflow. If an overflow is detected, Nothing // is returned. - MOZ_MUST_USE Maybe<Self> SafeUnion(const Self& aRect) const + [[nodiscard]] Maybe<Self> SafeUnion(const Self& aRect) const { if (this->IsEmpty()) { return aRect.Overflows() ? Nothing() : Some(aRect); @@ -179,7 +179,7 @@ struct IntRectTyped : // Same as UnionEdges, but guards against overflow. If an overflow is detected, // Nothing is returned. - MOZ_MUST_USE Maybe<Self> SafeUnionEdges(const Self& aRect) const + [[nodiscard]] Maybe<Self> SafeUnionEdges(const Self& aRect) const { if (this->Overflows() || aRect.Overflows()) { return Nothing(); |