GAL::GetGridPoint() takes a const reference.

This commit is contained in:
Maciej Suminski 2014-02-06 12:38:06 +01:00
parent 81f84748b3
commit b9df36eca5
2 changed files with 2 additions and 2 deletions

View File

@ -232,7 +232,7 @@ void GAL::DrawGrid()
}
VECTOR2D GAL::GetGridPoint( VECTOR2D aPoint ) const
VECTOR2D GAL::GetGridPoint( const VECTOR2D& aPoint ) const
{
VECTOR2D pointWorld = ToWorld( aPoint );

View File

@ -720,7 +720,7 @@ public:
* @param aPoint is the point for which the grid point is searched.
* @return The nearest grid point.
*/
VECTOR2D GetGridPoint( VECTOR2D aPoint ) const;
VECTOR2D GetGridPoint( const VECTOR2D& aPoint ) const;
/**