Fix missing consts.

This commit is contained in:
Kuba Sunderland-Ober 2023-06-22 01:14:15 -04:00 committed by Ian McInerney
parent 3ce50c3db5
commit b938064e29
4 changed files with 6 additions and 6 deletions

View File

@ -365,7 +365,7 @@ inline EDA_ANGLE operator/( const EDA_ANGLE& aAngleA, double aOperator )
}
inline double operator/( const EDA_ANGLE& aAngleA, EDA_ANGLE& aOperator )
inline double operator/( const EDA_ANGLE& aAngleA, const EDA_ANGLE& aOperator )
{
return aAngleA.AsDegrees() / aOperator.AsDegrees();
}

View File

@ -188,7 +188,7 @@ public:
*
* @param aShape shape to check collision against
* @param aClearance minimum clearance
* @param aMTV minimum translation vector
* @param aMTV [out] minimum translation vector
* @param aActual [out] an optional pointer to an int to store the actual distance in the
* event of a collision.
* @param aLocation [out] an option pointer to a point to store a nearby location in the

View File

@ -603,7 +603,7 @@ public:
* @param aAccuracy Accuracy of the arc representation in IU
* @return the number of points in the arc (including the interpolated points from the arc)
*/
int Append( SHAPE_ARC& aArc, int aOutline = -1, int aHole = -1,
int Append( const SHAPE_ARC& aArc, int aOutline = -1, int aHole = -1,
double aAccuracy = SHAPE_ARC::DefaultAccuracyForPCB() );
/**
@ -637,7 +637,7 @@ public:
* @param aNext is the globalIndex of the next corner of the same contour.
* @return true if OK, false if aGlobalIndex is out of range
*/
bool GetNeighbourIndexes( int aGlobalIndex, int* aPrevious, int* aNext );
bool GetNeighbourIndexes( int aGlobalIndex, int* aPrevious, int* aNext ) const;
/**
* Check whether the aPolygonIndex-th polygon in the set is self intersecting.

View File

@ -273,7 +273,7 @@ int SHAPE_POLY_SET::Append( int x, int y, int aOutline, int aHole, bool aAllowDu
}
int SHAPE_POLY_SET::Append( SHAPE_ARC& aArc, int aOutline, int aHole, double aAccuracy )
int SHAPE_POLY_SET::Append( const SHAPE_ARC& aArc, int aOutline, int aHole, double aAccuracy )
{
assert( m_polys.size() );
@ -414,7 +414,7 @@ const VECTOR2I& SHAPE_POLY_SET::CVertex( SHAPE_POLY_SET::VERTEX_INDEX index ) co
}
bool SHAPE_POLY_SET::GetNeighbourIndexes( int aGlobalIndex, int* aPrevious, int* aNext )
bool SHAPE_POLY_SET::GetNeighbourIndexes( int aGlobalIndex, int* aPrevious, int* aNext ) const
{
SHAPE_POLY_SET::VERTEX_INDEX index;