Class BOARD: Rename an overloaded method named SetLayer with the better name SetLayerDescr, and comment it. It also remove some warnings when compiled with option -Woverloaded-virtual
This commit is contained in:
parent
f5d9d09e04
commit
b556fb2324
|
@ -303,7 +303,7 @@ void BOARD::PopHighLight()
|
|||
}
|
||||
|
||||
|
||||
bool BOARD::SetLayer( LAYER_ID aIndex, const LAYER& aLayer )
|
||||
bool BOARD::SetLayerDescr( LAYER_ID aIndex, const LAYER& aLayer )
|
||||
{
|
||||
if( unsigned( aIndex ) < DIM( m_Layer ) )
|
||||
{
|
||||
|
|
|
@ -661,7 +661,15 @@ public:
|
|||
return LSET::Name( aLayerId );
|
||||
}
|
||||
|
||||
bool SetLayer( LAYER_ID aIndex, const LAYER& aLayer );
|
||||
/**
|
||||
* Function SetLayerDescr
|
||||
* returns the type of the copper layer given by aLayer.
|
||||
*
|
||||
* @param aIndex A layer index in m_Layer
|
||||
* @param aLayer A reference to a LAYER description.
|
||||
* @return false if the index was out of range.
|
||||
*/
|
||||
bool SetLayerDescr( LAYER_ID aIndex, const LAYER& aLayer );
|
||||
|
||||
/**
|
||||
* Function GetLayerType
|
||||
|
|
|
@ -800,7 +800,7 @@ void PCB_PARSER::parseLayers() throw( IO_ERROR, PARSE_ERROR )
|
|||
if( it->m_visible )
|
||||
visibleLayers.set( it->m_number );
|
||||
|
||||
m_board->SetLayer( LAYER_ID( it->m_number ), *it );
|
||||
m_board->SetLayerDescr( LAYER_ID( it->m_number ), *it );
|
||||
|
||||
UTF8 name = it->m_name;
|
||||
|
||||
|
@ -838,7 +838,7 @@ void PCB_PARSER::parseLayers() throw( IO_ERROR, PARSE_ERROR )
|
|||
|
||||
// DBG( printf( "aux m_visible:%s\n", layer.m_visible ? "true" : "false" );)
|
||||
|
||||
m_board->SetLayer( it->second, layer );
|
||||
m_board->SetLayerDescr( it->second, layer );
|
||||
|
||||
token = NextTok();
|
||||
|
||||
|
|
Loading…
Reference in New Issue