Fix some more warnings

This commit is contained in:
Marek Roszko 2023-05-20 08:00:00 -04:00
parent 9d452a6097
commit 8a7044c3fb
6 changed files with 6 additions and 6 deletions

View File

@ -52,7 +52,7 @@ class OBJECT_3D
public:
explicit OBJECT_3D( OBJECT_3D_TYPE aObjType );
const void SetBoardItem( BOARD_ITEM* aBoardItem ) { m_boardItem = aBoardItem; }
void SetBoardItem( BOARD_ITEM* aBoardItem ) { m_boardItem = aBoardItem; }
BOARD_ITEM* GetBoardItem() const { return m_boardItem; }
void SetMaterial( const MATERIAL* aMaterial )

View File

@ -33,7 +33,7 @@ namespace PNS {
static void dumpObstacles( const PNS::NODE::OBSTACLES &obstacles )
{
printf( "&&&& %lu obstacles: \n", obstacles.size() );
printf( "&&&& %zu obstacles: \n", obstacles.size() );
for( const auto& obs : obstacles )
{

View File

@ -1449,7 +1449,7 @@ bool BOARD_OUTLINE::DelOutline( size_t aIndex )
}
const std::list< IDF_OUTLINE* >*const BOARD_OUTLINE::GetOutlines( void )
const std::list<IDF_OUTLINE*>* BOARD_OUTLINE::GetOutlines( void )
{
return &outlines;
}

View File

@ -182,7 +182,7 @@ public:
* It is up to the user to respect the IDFv3 specification and avoid changes to this
* list which are in violation of the specification.
*/
const std::list< IDF_OUTLINE* >*const GetOutlines( void );
const std::list<IDF_OUTLINE*>* GetOutlines( void );
/**
* @return the number of items in the internal outline list.

View File

@ -1093,7 +1093,7 @@ bool IDF3_COMPONENT::DelDrill( IDF_DRILL_DATA* aDrill )
}
const std::list< IDF_DRILL_DATA* >*const IDF3_COMPONENT::GetDrills( void )
const std::list<IDF_DRILL_DATA*>* IDF3_COMPONENT::GetDrills( void )
{
return &drills;
}

View File

@ -299,7 +299,7 @@ public:
*
* To avoid IDF violations, the user should not alter these entries.
*/
const std::list< IDF_DRILL_DATA* >* const GetDrills( void );
const std::list<IDF_DRILL_DATA*>* GetDrills( void );
/**
* Add the given component outline data to this component.