mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 10:55:57 -04:00
Remove Swap() methods as there's std::swap for this
This commit is contained in:
parent
d55950f8aa
commit
14819ba188
@ -81,8 +81,4 @@ int Point::GetY() const {
|
||||
return point_->y;
|
||||
}
|
||||
|
||||
void Point::Swap(Point& other) noexcept {
|
||||
point_.swap(other.point_);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -63,8 +63,6 @@ public:
|
||||
|
||||
int GetX() const;
|
||||
int GetY() const;
|
||||
|
||||
void Swap(Point& other) noexcept;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -111,8 +111,4 @@ int Rect::GetY2() const {
|
||||
return rect_->y + rect_->h;
|
||||
}
|
||||
|
||||
void Rect::Swap(Rect& other) noexcept {
|
||||
rect_.swap(other.rect_);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -59,8 +59,6 @@ public:
|
||||
int GetH() const;
|
||||
int GetX2() const;
|
||||
int GetY2() const;
|
||||
|
||||
void Swap(Rect& other) noexcept;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user