diff --git a/src/gfx/rect.h b/src/gfx/rect.h index 4b29a7a13..8fb0552f2 100644 --- a/src/gfx/rect.h +++ b/src/gfx/rect.h @@ -254,13 +254,11 @@ public: } const RectT& operator|=(const RectT& rc) { - RectT::operator=(createUnion(rc)); - return *this; + return *this = createUnion(rc); } const RectT& operator&=(const RectT& rc) { - RectT::operator=(createIntersect(rc)); - return *this; + return *this = createIntersect(rc); } RectT operator+(const BorderT& br) const {