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
{
auto refType = T( nullptr ).Type();
for( auto item : m_items )
{
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:
PICKED_ITEMS_LIST undoList;
@ -91,7 +91,7 @@ void BOARD_COMMIT::Push( const wxString& aMessage, bool aCreateUndoEntry)
assert( ent.m_item->Type() == PCB_MODULE_T );
assert( ent.m_copy->Type() == PCB_MODULE_T );
if( aCreateUndoEntry )
if( aCreateUndoEntry )
{
ITEM_PICKER itemWrapper( ent.m_item, UR_CHANGED );
itemWrapper.SetLink( ent.m_copy );
@ -111,9 +111,9 @@ void BOARD_COMMIT::Push( const wxString& aMessage, bool aCreateUndoEntry)
if( !m_editModules )
{
if( aCreateUndoEntry )
{
undoList.PushItem( ITEM_PICKER( boardItem, UR_NEW ) );
}
{
undoList.PushItem( ITEM_PICKER( boardItem, UR_NEW ) );
}
if( !( changeFlags & CHT_DONE ) )
board->Add( boardItem );

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 );
commit.Add( aMarker );

View File

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

View File

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