mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-14 13:29:35 +00:00
GAL::GetGridPoint() takes a const reference.
This commit is contained in:
parent
81f84748b3
commit
b9df36eca5
@ -232,7 +232,7 @@ void GAL::DrawGrid()
|
||||
}
|
||||
|
||||
|
||||
VECTOR2D GAL::GetGridPoint( VECTOR2D aPoint ) const
|
||||
VECTOR2D GAL::GetGridPoint( const VECTOR2D& aPoint ) const
|
||||
{
|
||||
VECTOR2D pointWorld = ToWorld( aPoint );
|
||||
|
||||
|
@ -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…
Reference in New Issue
Block a user