Browse Source

Fix some warnings.

newinvert
Alex Shvartzkop 2 years ago
parent
commit
affcfed677
  1. 2
      common/background_jobs_monitor.cpp
  2. 4
      eeschema/fields_grid_table.cpp
  3. 1
      eeschema/fields_grid_table.h
  4. 2
      eeschema/sync_sheet_pin/dialog_sync_sheet_pins.cpp
  5. 2
      include/background_jobs_monitor.h

2
common/background_jobs_monitor.cpp

@ -209,7 +209,7 @@ void BACKGROUND_JOB_REPORTER::AdvancePhase()
} }
BACKGROUND_JOBS_MONITOR::BACKGROUND_JOBS_MONITOR() : m_jobListDialog( nullptr )
BACKGROUND_JOBS_MONITOR::BACKGROUND_JOBS_MONITOR()
{ {
} }

4
eeschema/fields_grid_table.cpp

@ -130,7 +130,6 @@ FIELDS_GRID_TABLE::FIELDS_GRID_TABLE( DIALOG_SHIM* aDialog, SCH_BASE_FRAME* aFra
LIB_SYMBOL* aSymbol ) : LIB_SYMBOL* aSymbol ) :
m_frame( aFrame ), m_frame( aFrame ),
m_dialog( aDialog ), m_dialog( aDialog ),
m_grid( aGrid ),
m_parentType( SCH_SYMBOL_T ), m_parentType( SCH_SYMBOL_T ),
m_mandatoryFieldCount( MANDATORY_FIELDS ), m_mandatoryFieldCount( MANDATORY_FIELDS ),
m_part( aSymbol ), m_part( aSymbol ),
@ -150,7 +149,6 @@ FIELDS_GRID_TABLE::FIELDS_GRID_TABLE( DIALOG_SHIM* aDialog, SCH_EDIT_FRAME* aFra
SCH_SYMBOL* aSymbol ) : SCH_SYMBOL* aSymbol ) :
m_frame( aFrame ), m_frame( aFrame ),
m_dialog( aDialog ), m_dialog( aDialog ),
m_grid( aGrid ),
m_parentType( SCH_SYMBOL_T ), m_parentType( SCH_SYMBOL_T ),
m_mandatoryFieldCount( MANDATORY_FIELDS ), m_mandatoryFieldCount( MANDATORY_FIELDS ),
m_part( aSymbol->GetLibSymbolRef().get() ), m_part( aSymbol->GetLibSymbolRef().get() ),
@ -170,7 +168,6 @@ FIELDS_GRID_TABLE::FIELDS_GRID_TABLE( DIALOG_SHIM* aDialog, SCH_EDIT_FRAME* aFra
SCH_SHEET* aSheet ) : SCH_SHEET* aSheet ) :
m_frame( aFrame ), m_frame( aFrame ),
m_dialog( aDialog ), m_dialog( aDialog ),
m_grid( aGrid ),
m_parentType( SCH_SHEET_T ), m_parentType( SCH_SHEET_T ),
m_mandatoryFieldCount( SHEET_MANDATORY_FIELDS ), m_mandatoryFieldCount( SHEET_MANDATORY_FIELDS ),
m_part( nullptr ), m_part( nullptr ),
@ -189,7 +186,6 @@ FIELDS_GRID_TABLE::FIELDS_GRID_TABLE( DIALOG_SHIM* aDialog, SCH_EDIT_FRAME* aFra
SCH_LABEL_BASE* aLabel ) : SCH_LABEL_BASE* aLabel ) :
m_frame( aFrame ), m_frame( aFrame ),
m_dialog( aDialog ), m_dialog( aDialog ),
m_grid( aGrid ),
m_parentType( SCH_LABEL_LOCATE_ANY_T ), m_parentType( SCH_LABEL_LOCATE_ANY_T ),
m_mandatoryFieldCount( aLabel->GetMandatoryFieldCount() ), m_mandatoryFieldCount( aLabel->GetMandatoryFieldCount() ),
m_part( nullptr ), m_part( nullptr ),

1
eeschema/fields_grid_table.h

@ -116,7 +116,6 @@ protected:
private: private:
SCH_BASE_FRAME* m_frame; SCH_BASE_FRAME* m_frame;
DIALOG_SHIM* m_dialog; DIALOG_SHIM* m_dialog;
WX_GRID* m_grid;
KICAD_T m_parentType; KICAD_T m_parentType;
int m_mandatoryFieldCount; int m_mandatoryFieldCount;
LIB_SYMBOL* m_part; LIB_SYMBOL* m_part;

2
eeschema/sync_sheet_pin/dialog_sync_sheet_pins.cpp

@ -52,7 +52,7 @@ DIALOG_SYNC_SHEET_PINS::DIALOG_SYNC_SHEET_PINS( wxWindow* aParent,
wxImageList* imageList = new wxImageList( SYNC_SHEET_PIN_PREFERENCE::NORMAL_WIDTH, wxImageList* imageList = new wxImageList( SYNC_SHEET_PIN_PREFERENCE::NORMAL_WIDTH,
SYNC_SHEET_PIN_PREFERENCE::NORMAL_HEIGHT ); SYNC_SHEET_PIN_PREFERENCE::NORMAL_HEIGHT );
for( const auto [icon_idx, bitmap] : SYNC_SHEET_PIN_PREFERENCE::GetBookctrlPageIcon() )
for( const auto& [icon_idx, bitmap] : SYNC_SHEET_PIN_PREFERENCE::GetBookctrlPageIcon() )
{ {
imageList->Add( KiBitmap( bitmap, SYNC_SHEET_PIN_PREFERENCE::NORMAL_HEIGHT ) ); imageList->Add( KiBitmap( bitmap, SYNC_SHEET_PIN_PREFERENCE::NORMAL_HEIGHT ) );
} }

2
include/background_jobs_monitor.h

@ -128,8 +128,6 @@ private:
*/ */
void jobUpdated( std::shared_ptr<BACKGROUND_JOB> aJob ); void jobUpdated( std::shared_ptr<BACKGROUND_JOB> aJob );
BACKGROUND_JOB_LIST* m_jobListDialog;
/** /**
* Holds a reference to all active background jobs * Holds a reference to all active background jobs
* Access to this vector should be protected by locks since threads may Create or Remove at will * Access to this vector should be protected by locks since threads may Create or Remove at will

Loading…
Cancel
Save