mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1227396: P11. Add IntervalSet::operator- operand. r=gerald
Also fix constness.
This commit is contained in:
parent
c0593734db
commit
31b48c0641
@ -401,7 +401,7 @@ public:
|
||||
return intervals;
|
||||
}
|
||||
|
||||
SelfType operator+ (const ElemType& aInterval)
|
||||
SelfType operator+ (const ElemType& aInterval) const
|
||||
{
|
||||
SelfType intervals(*this);
|
||||
intervals.Add(aInterval);
|
||||
@ -442,7 +442,14 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
SelfType operator- (const ElemType& aInterval)
|
||||
SelfType operator- (const SelfType& aInterval) const
|
||||
{
|
||||
SelfType intervals(*this);
|
||||
intervals -= aInterval;
|
||||
return intervals;
|
||||
}
|
||||
|
||||
SelfType operator- (const ElemType& aInterval) const
|
||||
{
|
||||
SelfType intervals(*this);
|
||||
intervals -= aInterval;
|
||||
|
Loading…
Reference in New Issue
Block a user