aboutsummaryrefslogtreecommitdiff
path: root/common/rect.h
diff options
context:
space:
mode:
authorMax Horn2009-04-21 17:02:09 +0000
committerMax Horn2009-04-21 17:02:09 +0000
commit7caad280d1c58bdb7acc502c4526a0c8fb0d223e (patch)
tree127cb433f90c681a2452762ee02f0d9b7bad6f0e /common/rect.h
parent319a4f8aa92a3ff8fb31c9c82bb418abd45464a6 (diff)
downloadscummvm-rg350-7caad280d1c58bdb7acc502c4526a0c8fb0d223e.tar.gz
scummvm-rg350-7caad280d1c58bdb7acc502c4526a0c8fb0d223e.tar.bz2
scummvm-rg350-7caad280d1c58bdb7acc502c4526a0c8fb0d223e.zip
COMMON: Removed copy constructors / assignment operators in cases where they are identical to the automatically generated ones. Also removed a pointless 'explicit'
svn-id: r40049
Diffstat (limited to 'common/rect.h')
-rw-r--r--common/rect.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/common/rect.h b/common/rect.h
index a0ccd07f90..18cc4e56c3 100644
--- a/common/rect.h
+++ b/common/rect.h
@@ -40,9 +40,7 @@ struct Point {
int16 y; //!< The vertical part of the point
Point() : x(0), y(0) {}
- Point(const Point &p) : x(p.x), y(p.y) {}
- explicit Point(int16 x1, int16 y1) : x(x1), y(y1) {}
- Point & operator=(const Point & p) { x = p.x; y = p.y; return *this; };
+ Point(int16 x1, int16 y1) : x(x1), y(y1) {}
bool operator==(const Point & p) const { return x == p.x && y == p.y; };
bool operator!=(const Point & p) const { return x != p.x || y != p.y; };