Coding style fixes

This commit is contained in:
Tomasz Włostowski 2017-03-03 20:26:18 +01:00
parent 18a9f037d2
commit 966052272f
5 changed files with 10 additions and 7 deletions

View File

@ -151,6 +151,7 @@ public:
T* FirstOfKind() const T* FirstOfKind() const
{ {
auto refType = T( nullptr ).Type(); auto refType = T( nullptr ).Type();
for( auto item : m_items ) for( auto item : m_items )
{ {
if( item->Type() == refType ) if( item->Type() == refType )

View File

@ -53,7 +53,7 @@ BOARD_COMMIT::~BOARD_COMMIT()
} }
void BOARD_COMMIT::Push( const wxString& aMessage, bool aCreateUndoEntry) void BOARD_COMMIT::Push( const wxString& aMessage, bool aCreateUndoEntry )
{ {
// Objects potentially interested in changes: // Objects potentially interested in changes:
PICKED_ITEMS_LIST undoList; PICKED_ITEMS_LIST undoList;

View File

@ -88,7 +88,7 @@ void DRC::ShowDRCDialog( wxWindow* aParent )
} }
} }
void DRC::addMarkerToPcb( MARKER_PCB *aMarker ) void DRC::addMarkerToPcb( MARKER_PCB* aMarker )
{ {
BOARD_COMMIT commit ( m_pcbEditorFrame ); BOARD_COMMIT commit ( m_pcbEditorFrame );
commit.Add( aMarker ); commit.Add( aMarker );

View File

@ -258,7 +258,7 @@ private:
* Function addMarkerToPcb * Function addMarkerToPcb
* Adds a DRC marker to the PCB throught the COMMIT mechanism. * Adds a DRC marker to the PCB throught the COMMIT mechanism.
*/ */
void addMarkerToPcb( MARKER_PCB *aMarker ); void addMarkerToPcb( MARKER_PCB* aMarker );
//-----<categorical group tests>----------------------------------------- //-----<categorical group tests>-----------------------------------------

View File

@ -319,11 +319,13 @@ int SELECTION_TOOL::Main( const TOOL_EVENT& aEvent )
return 0; return 0;
} }
SELECTION& SELECTION_TOOL::GetSelection() SELECTION& SELECTION_TOOL::GetSelection()
{ {
return m_selection; return m_selection;
} }
SELECTION& SELECTION_TOOL::RequestSelection( int aFlags ) SELECTION& SELECTION_TOOL::RequestSelection( int aFlags )
{ {
if ( m_selection.Empty() ) if ( m_selection.Empty() )