mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Compiler warnings.
This commit is contained in:
parent
2504195e6e
commit
87a0106c57
@ -93,8 +93,8 @@ GR_TEXT_V_ALIGN_T EDA_TEXT::MapVertJustify( int aVertJustify )
|
||||
|
||||
|
||||
EDA_TEXT::EDA_TEXT( const EDA_IU_SCALE& aIuScale, const wxString& aText ) :
|
||||
m_text( aText ),
|
||||
m_IuScale( aIuScale ),
|
||||
m_text( aText ),
|
||||
m_render_cache_font( nullptr ),
|
||||
m_visible( true )
|
||||
{
|
||||
|
@ -395,7 +395,7 @@ void PCB_EDIT_FRAME::GenD356File( wxCommandEvent& aEvent )
|
||||
if( dlg.ShowModal() == wxID_CANCEL )
|
||||
return;
|
||||
|
||||
IPC356D_WRITER writer( GetBoard(), this );
|
||||
IPC356D_WRITER writer( GetBoard() );
|
||||
|
||||
bool success = writer.Write( dlg.GetPath() );
|
||||
|
||||
|
@ -58,8 +58,8 @@ public:
|
||||
* @param aPcb is the board to extract a netlist from
|
||||
* @param aParent will be used as the parent for any warning dialogs
|
||||
*/
|
||||
IPC356D_WRITER( BOARD* aPcb, wxWindow* aParent = nullptr ) :
|
||||
m_pcb( aPcb ), m_parent( aParent )
|
||||
IPC356D_WRITER( BOARD* aPcb ) :
|
||||
m_pcb( aPcb )
|
||||
{}
|
||||
|
||||
virtual ~IPC356D_WRITER() {}
|
||||
@ -73,7 +73,6 @@ public:
|
||||
|
||||
private:
|
||||
BOARD* m_pcb;
|
||||
wxWindow* m_parent;
|
||||
|
||||
/// Writes a list of records to the given output stream
|
||||
void write_D356_records( std::vector<D356_RECORD> &aRecords, FILE* aFile );
|
||||
|
@ -2463,9 +2463,6 @@ void PCB_PAINTER::draw( const PCB_TABLE* aTable, int aLayer )
|
||||
for( PCB_TABLECELL* cell : aTable->GetCells() )
|
||||
draw( static_cast<PCB_TEXTBOX*>( cell ), aLayer );
|
||||
|
||||
VECTOR2I pos = aTable->GetPosition();
|
||||
VECTOR2I end = aTable->GetEnd();
|
||||
|
||||
// Selection for tables is done with a background wash, so pass in nullptr to GetColor()
|
||||
// so we just get the "normal" (un-selected/un-brightened) color for the borders.
|
||||
COLOR4D color = m_pcbSettings.GetColor( nullptr, aLayer );
|
||||
@ -2512,20 +2509,6 @@ void PCB_PAINTER::draw( const PCB_TABLE* aTable, int aLayer )
|
||||
}
|
||||
};
|
||||
|
||||
auto strokeRect =
|
||||
[&]( VECTOR2I ptA, VECTOR2I ptB )
|
||||
{
|
||||
if( lineStyle <= LINE_STYLE::FIRST_TYPE )
|
||||
{
|
||||
m_gal->DrawRectangle( ptA, ptB );
|
||||
}
|
||||
else
|
||||
{
|
||||
SHAPE_RECT rect( BOX2I( ptA, ptB - ptA ) );
|
||||
strokeShape( rect );
|
||||
}
|
||||
};
|
||||
|
||||
if( aTable->GetSeparatorsStroke().GetWidth() >= 0 )
|
||||
{
|
||||
setupStroke( aTable->GetSeparatorsStroke() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user