Browse Source

Tidy consts in class BOARD

Add some consts to "getters" in this class.

Remove const from return type of static return-by-value getter - this
has no effect on the caller except disabling move operations and forcing
copy operations.
pull/3/merge
John Beard 9 years ago
committed by Maciej Suminski
parent
commit
bbf8a0fa06
  1. 6
      pcbnew/class_board.h

6
pcbnew/class_board.h

@ -353,7 +353,7 @@ public:
* Function GetHighLightNetCode
* @return netcode of net to highlight (-1 when no net selected)
*/
int GetHighLightNetCode() { return m_highLight.m_netCode; }
int GetHighLightNetCode() const { return m_highLight.m_netCode; }
/**
* Function SetHighLightNet
@ -368,7 +368,7 @@ public:
* Function IsHighLightNetON
* @return true if a net is currently highlighted
*/
bool IsHighLightNetON() { return m_highLight.m_highLightOn; }
bool IsHighLightNetON() const { return m_highLight.m_highLightOn; }
/**
* Function HighLightOFF
@ -645,7 +645,7 @@ public:
* @return const wxString - containing the layer name or "BAD INDEX" if aLayerId
* is not legal
*/
static const wxString GetStandardLayerName( LAYER_ID aLayerId )
static wxString GetStandardLayerName( LAYER_ID aLayerId )
{
// a BOARD's standard layer name is the LAYER_ID fixed name
return LSET::Name( aLayerId );

Loading…
Cancel
Save