diff --git a/common/gal/graphics_abstraction_layer.cpp b/common/gal/graphics_abstraction_layer.cpp index 6fa929b062..2a3d9a089c 100644 --- a/common/gal/graphics_abstraction_layer.cpp +++ b/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 ); diff --git a/include/gal/graphics_abstraction_layer.h b/include/gal/graphics_abstraction_layer.h index 7745dfa172..118faf38ac 100644 --- a/include/gal/graphics_abstraction_layer.h +++ b/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; /**