remove overloading assignment operator of rectangle

This commit is contained in:
Jinhao
2016-07-13 08:00:59 +08:00
parent 8489e16d72
commit 5d5a808b2d
10 changed files with 71 additions and 64 deletions

View File

@@ -607,20 +607,6 @@ namespace nana
return (width != rhs.width) || (height != rhs.height) || (x != rhs.x) || (y != rhs.y);
}
rectangle & rectangle::operator=(const point& pos)
{
x = pos.x;
y = pos.y;
return *this;
}
rectangle & rectangle::operator=(const size & sz)
{
width = sz.width;
height = sz.height;
return *this;
}
point rectangle::position() const noexcept
{
return{ x, y };