Commit b9df36ec authored by Maciej Suminski's avatar Maciej Suminski

GAL::GetGridPoint() takes a const reference.

parent 81f84748
...@@ -232,7 +232,7 @@ void GAL::DrawGrid() ...@@ -232,7 +232,7 @@ void GAL::DrawGrid()
} }
VECTOR2D GAL::GetGridPoint( VECTOR2D aPoint ) const VECTOR2D GAL::GetGridPoint( const VECTOR2D& aPoint ) const
{ {
VECTOR2D pointWorld = ToWorld( aPoint ); VECTOR2D pointWorld = ToWorld( aPoint );
......
...@@ -720,7 +720,7 @@ public: ...@@ -720,7 +720,7 @@ public:
* @param aPoint is the point for which the grid point is searched. * @param aPoint is the point for which the grid point is searched.
* @return The nearest grid point. * @return The nearest grid point.
*/ */
VECTOR2D GetGridPoint( VECTOR2D aPoint ) const; VECTOR2D GetGridPoint( const VECTOR2D& aPoint ) const;
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment