BRegion: add move construction and assignment support

GCC 2 support is also provided with `MoveFrom` method.

Change-Id: Ibd062f501fdeb5538ade6c84dcafb61cff70cc32
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8529
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
X512
2024-11-11 16:56:19 +00:00
committed by waddlesplash
parent 1e3e4210de
commit 80fcf2df19
2 changed files with 55 additions and 0 deletions
+7
View File
@@ -29,13 +29,20 @@ public:
BRegion();
BRegion(const BRegion& other);
BRegion(const BRect rect);
#if defined(__cplusplus) && __cplusplus >= 201103L
BRegion(BRegion&& other);
#endif
virtual ~BRegion();
BRegion& operator=(const BRegion& other);
#if defined(__cplusplus) && __cplusplus >= 201103L
BRegion& operator=(BRegion&& other);
#endif
bool operator==(const BRegion& other) const;
void Set(BRect rect);
void Set(clipping_rect clipping);
void MoveFrom(BRegion& other);
BRect Frame() const;
clipping_rect FrameInt() const;