mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +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 ) :
|
EDA_TEXT::EDA_TEXT( const EDA_IU_SCALE& aIuScale, const wxString& aText ) :
|
||||||
m_text( aText ),
|
|
||||||
m_IuScale( aIuScale ),
|
m_IuScale( aIuScale ),
|
||||||
|
m_text( aText ),
|
||||||
m_render_cache_font( nullptr ),
|
m_render_cache_font( nullptr ),
|
||||||
m_visible( true )
|
m_visible( true )
|
||||||
{
|
{
|
||||||
|
@ -395,7 +395,7 @@ void PCB_EDIT_FRAME::GenD356File( wxCommandEvent& aEvent )
|
|||||||
if( dlg.ShowModal() == wxID_CANCEL )
|
if( dlg.ShowModal() == wxID_CANCEL )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
IPC356D_WRITER writer( GetBoard(), this );
|
IPC356D_WRITER writer( GetBoard() );
|
||||||
|
|
||||||
bool success = writer.Write( dlg.GetPath() );
|
bool success = writer.Write( dlg.GetPath() );
|
||||||
|
|
||||||
|
@ -58,8 +58,8 @@ public:
|
|||||||
* @param aPcb is the board to extract a netlist from
|
* @param aPcb is the board to extract a netlist from
|
||||||
* @param aParent will be used as the parent for any warning dialogs
|
* @param aParent will be used as the parent for any warning dialogs
|
||||||
*/
|
*/
|
||||||
IPC356D_WRITER( BOARD* aPcb, wxWindow* aParent = nullptr ) :
|
IPC356D_WRITER( BOARD* aPcb ) :
|
||||||
m_pcb( aPcb ), m_parent( aParent )
|
m_pcb( aPcb )
|
||||||
{}
|
{}
|
||||||
|
|
||||||
virtual ~IPC356D_WRITER() {}
|
virtual ~IPC356D_WRITER() {}
|
||||||
@ -73,7 +73,6 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
BOARD* m_pcb;
|
BOARD* m_pcb;
|
||||||
wxWindow* m_parent;
|
|
||||||
|
|
||||||
/// Writes a list of records to the given output stream
|
/// Writes a list of records to the given output stream
|
||||||
void write_D356_records( std::vector<D356_RECORD> &aRecords, FILE* aFile );
|
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() )
|
for( PCB_TABLECELL* cell : aTable->GetCells() )
|
||||||
draw( static_cast<PCB_TEXTBOX*>( cell ), aLayer );
|
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()
|
// 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.
|
// so we just get the "normal" (un-selected/un-brightened) color for the borders.
|
||||||
COLOR4D color = m_pcbSettings.GetColor( nullptr, aLayer );
|
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 )
|
if( aTable->GetSeparatorsStroke().GetWidth() >= 0 )
|
||||||
{
|
{
|
||||||
setupStroke( aTable->GetSeparatorsStroke() );
|
setupStroke( aTable->GetSeparatorsStroke() );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user