Browse Source

fix a few compil warnings

7.0
jean-pierre charras 3 years ago
parent
commit
bd28bd7a00
  1. 3
      common/fp_lib_table.cpp
  2. 2
      common/project.cpp
  3. 3
      eeschema/symbol_lib_table.cpp

3
common/fp_lib_table.cpp

@ -485,8 +485,9 @@ class PCM_FP_LIB_TRAVERSER final : public wxDirTraverser
public:
explicit PCM_FP_LIB_TRAVERSER( const wxString& aPath, FP_LIB_TABLE& aTable,
const wxString& aPrefix ) :
m_lib_table( aTable ),
m_path_prefix( aPath ),
m_lib_table( aTable ), m_lib_prefix( aPrefix )
m_lib_prefix( aPrefix )
{
wxFileName f( aPath, "" );
m_prefix_dir_count = f.GetDirCount();

2
common/project.cpp

@ -155,7 +155,6 @@ const wxString PROJECT::FootprintLibTblName() const
void PROJECT::PinLibrary( const wxString& aLibrary, bool isSymbolLibrary )
{
COMMON_SETTINGS* cfg = Pgm().GetCommonSettings();
PROJECT_FILE& project = GetProjectFile();
std::vector<wxString>& pinnedLibs = isSymbolLibrary ? m_projectFile->m_PinnedSymbolLibs
: m_projectFile->m_PinnedFootprintLibs;
@ -177,7 +176,6 @@ void PROJECT::PinLibrary( const wxString& aLibrary, bool isSymbolLibrary )
void PROJECT::UnpinLibrary( const wxString& aLibrary, bool isSymbolLibrary )
{
COMMON_SETTINGS* cfg = Pgm().GetCommonSettings();
PROJECT_FILE& project = GetProjectFile();
std::vector<wxString>& pinnedLibs = isSymbolLibrary ? m_projectFile->m_PinnedSymbolLibs
: m_projectFile->m_PinnedFootprintLibs;

3
eeschema/symbol_lib_table.cpp

@ -525,8 +525,9 @@ class PCM_SYM_LIB_TRAVERSER final : public wxDirTraverser
public:
explicit PCM_SYM_LIB_TRAVERSER( const wxString& aPath, SYMBOL_LIB_TABLE& aTable,
const wxString& aPrefix ) :
m_lib_table( aTable ),
m_path_prefix( aPath ),
m_lib_table( aTable ), m_lib_prefix( aPrefix )
m_lib_prefix( aPrefix )
{
wxFileName f( aPath, "" );
m_prefix_dir_count = f.GetDirCount();

Loading…
Cancel
Save