Formatting and warnings cleanup. (No functional changes.)
This commit is contained in:
parent
7545097d7f
commit
26c14271f2
|
@ -2,7 +2,7 @@
|
|||
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||
*
|
||||
* Copyright (C) 2014-2017 CERN
|
||||
* Copyright (C) 2021-2022 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
* Copyright (C) 2021-2023 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
* @author Maciej Suminski <maciej.suminski@cern.ch>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
|
@ -352,7 +352,7 @@ void PCB_DRAW_PANEL_GAL::SetHighContrastLayer( PCB_LAYER_ID aLayer )
|
|||
LAYER_RATSNEST, LAYER_CURSOR, LAYER_ANCHOR, LAYER_LOCKED_ITEM_SHADOW
|
||||
};
|
||||
|
||||
for( unsigned int i : layers )
|
||||
for( int i : layers )
|
||||
rSettings->SetLayerIsHighContrast( i );
|
||||
|
||||
// Pads should be shown too
|
||||
|
@ -500,7 +500,7 @@ void PCB_DRAW_PANEL_GAL::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame,
|
|||
int viaCount = 0;
|
||||
int trackSegmentCount = 0;
|
||||
std::set<int> netCodes;
|
||||
int unconnected = board->GetConnectivity()->GetUnconnectedCount( true );
|
||||
int unconnected = (int) board->GetConnectivity()->GetUnconnectedCount( true );
|
||||
|
||||
for( PCB_TRACK* item : board->Tracks() )
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||
*
|
||||
* Copyright (C) 2014 CERN
|
||||
* Copyright (C) 2021 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
* Copyright (C) 2021-2023 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
*
|
||||
* @author Maciej Suminski <maciej.suminski@cern.ch>
|
||||
*
|
||||
|
@ -55,7 +55,7 @@ public:
|
|||
* Sets (or updates) drawing-sheet used by the draw panel.
|
||||
*
|
||||
* @param aDrawingSheet is the drawing-sheet to be used. The object is then owned by
|
||||
* #PCB_DRAW_PANEL_GAL.
|
||||
* #PCB_DRAW_PANEL_GAL.
|
||||
*/
|
||||
void SetDrawingSheet( DS_PROXY_VIEW_ITEM* aDrawingSheet );
|
||||
|
||||
|
@ -115,11 +115,9 @@ protected:
|
|||
///< Set rendering targets & dependencies for layers.
|
||||
void setDefaultLayerDeps();
|
||||
|
||||
///< Currently used drawing-sheet.
|
||||
std::unique_ptr<DS_PROXY_VIEW_ITEM> m_drawingSheet;
|
||||
|
||||
///< Ratsnest view item
|
||||
std::unique_ptr<RATSNEST_VIEW_ITEM> m_ratsnest;
|
||||
protected:
|
||||
std::unique_ptr<DS_PROXY_VIEW_ITEM> m_drawingSheet; ///< Currently used drawing-sheet.
|
||||
std::unique_ptr<RATSNEST_VIEW_ITEM> m_ratsnest; ///< Ratsnest view item
|
||||
};
|
||||
|
||||
#endif /* PCB_DRAW_PANEL_GAL_H_ */
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* This program source code file is part of KICAD, a free EDA CAD application.
|
||||
*
|
||||
* Copyright (C) 2013 CERN
|
||||
* Copyright (C) 2018-2021 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
* Copyright (C) 2018-2023 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
*
|
||||
* @author Maciej Suminski <maciej.suminski@cern.ch>
|
||||
*
|
||||
|
@ -43,7 +43,8 @@
|
|||
|
||||
|
||||
RATSNEST_VIEW_ITEM::RATSNEST_VIEW_ITEM( std::shared_ptr<CONNECTIVITY_DATA> aData ) :
|
||||
EDA_ITEM( NOT_USED ), m_data( std::move(aData) )
|
||||
EDA_ITEM( NOT_USED ),
|
||||
m_data( std::move( aData ) )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue