Browse Source

Fix a few minor coverity warnings (not initialized members)

pull/5/merge
jean-pierre charras 8 years ago
parent
commit
9723b0d844
  1. 2
      common/footprint_info.cpp
  2. 1
      common/widgets/footprint_select_widget.cpp
  3. 1
      include/geometry/poly_grid_partition.h
  4. 2
      pcbnew/footprint_preview_panel.cpp

2
common/footprint_info.cpp

@ -141,6 +141,8 @@ std::unique_ptr<FOOTPRINT_LIST> FOOTPRINT_LIST::GetInstance( KIWAY& aKiway )
FOOTPRINT_ASYNC_LOADER::FOOTPRINT_ASYNC_LOADER() : m_list( nullptr )
{
m_started = false;
m_total_libs = 0;
}

1
common/widgets/footprint_select_widget.cpp

@ -72,6 +72,7 @@ FOOTPRINT_SELECT_WIDGET::FOOTPRINT_SELECT_WIDGET( wxWindow* aParent,
m_fp_loader( aLoader ),
m_fp_list( aFpList )
{
m_zero_filter = true;
m_sizer = new wxBoxSizer( wxVERTICAL );
m_progress_timer = std::make_unique<wxTimer>( this );
m_book = new wxSimplebook( this, wxID_ANY );

1
include/geometry/poly_grid_partition.h

@ -281,6 +281,7 @@ private:
{
SCAN_STATE()
{
dist_prev = INT_MAX;
dist_max = INT_MAX;
nearest = -1;
nearest_prev = -1;

2
pcbnew/footprint_preview_panel.cpp

@ -165,7 +165,7 @@ class FP_THREAD_IFACE
std::deque<CACHE_ENTRY> m_loaderQueue;
std::map<LIB_ID, CACHE_ENTRY> m_cachedFootprints;
LIB_ID m_current_fp;
FOOTPRINT_PREVIEW_PANEL* m_panel;
FOOTPRINT_PREVIEW_PANEL* m_panel = nullptr;
MUTEX m_lock;
};

Loading…
Cancel
Save