Browse Source

GAL::GetGridPoint() takes a const reference.

pull/1/head
Maciej Suminski 12 years ago
parent
commit
b9df36eca5
  1. 2
      common/gal/graphics_abstraction_layer.cpp
  2. 2
      include/gal/graphics_abstraction_layer.h

2
common/gal/graphics_abstraction_layer.cpp

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

2
include/gal/graphics_abstraction_layer.h

@ -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;
/**

Loading…
Cancel
Save