[Scummvm-cvs-logs] SF.net SVN: scummvm:[45299] scummvm/trunk/common/rect.h
jvprat at users.sourceforge.net
jvprat at users.sourceforge.net
Wed Oct 21 10:45:24 CEST 2009
Revision: 45299
http://scummvm.svn.sourceforge.net/scummvm/?rev=45299&view=rev
Author: jvprat
Date: 2009-10-21 08:45:24 +0000 (Wed, 21 Oct 2009)
Log Message:
-----------
Small formatting fixes
Modified Paths:
--------------
scummvm/trunk/common/rect.h
Modified: scummvm/trunk/common/rect.h
===================================================================
--- scummvm/trunk/common/rect.h 2009-10-21 08:41:57 UTC (rev 45298)
+++ scummvm/trunk/common/rect.h 2009-10-21 08:45:24 UTC (rev 45299)
@@ -41,8 +41,8 @@
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 @@
* @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 @@
if (diffy >= 0x1000)
return 0xFFFFFF;
- return uint(diffx*diffx + diffy*diffy);
+ return uint(diffx * diffx + diffy * diffy);
}
};
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list