diff options
author | Jordi Vilalta Prat | 2009-10-21 08:45:24 +0000 |
---|---|---|
committer | Jordi Vilalta Prat | 2009-10-21 08:45:24 +0000 |
commit | e5d28892447e1e614032257f9070c90886e460ce (patch) | |
tree | 569d643c1a475140796f313eecec215a302f5f02 /common | |
parent | 8d8b4dc50a4ad235c3692a2d136e5e4c64d8f4d4 (diff) | |
download | scummvm-rg350-e5d28892447e1e614032257f9070c90886e460ce.tar.gz scummvm-rg350-e5d28892447e1e614032257f9070c90886e460ce.tar.bz2 scummvm-rg350-e5d28892447e1e614032257f9070c90886e460ce.zip |
Small formatting fixes
svn-id: r45299
Diffstat (limited to 'common')
-rw-r--r-- | common/rect.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/rect.h b/common/rect.h index 5421cbf3f3..38bd2c00af 100644 --- a/common/rect.h +++ b/common/rect.h @@ -41,8 +41,8 @@ struct Point { Point() : x(0), y(0) {} 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; }; + 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; }; /** * Return the square of the distance between this point and the point p. @@ -50,7 +50,7 @@ struct Point { * @param p the other point * @return the distance between this and p */ - uint sqrDist(const Point & p) const { + uint sqrDist(const Point &p) const { int diffx = ABS(p.x - x); if (diffx >= 0x1000) return 0xFFFFFF; @@ -59,7 +59,7 @@ struct Point { if (diffy >= 0x1000) return 0xFFFFFF; - return uint(diffx*diffx + diffy*diffy); + return uint(diffx * diffx + diffy * diffy); } }; |