Fix some warnings and improve memory layout.

This commit is contained in:
Alex Shvartzkop
2024-07-17 23:20:32 +03:00
parent d0292c39fc
commit 17f44c0dc1
2 changed files with 8 additions and 9 deletions
+6 -7
View File
@@ -65,10 +65,10 @@ public:
wxString name;
FILE_TYPE type;
bool is_valid;
std::string compressedEncodedData;
std::vector<char> decompressedData;
std::string data_sha;
bool is_valid;
};
enum class RETURN_CODE : int
@@ -216,15 +216,14 @@ public:
return m_embedFonts;
}
protected:
bool m_embedFonts; // If set, fonts will be embedded in the element on save
// Otherwise, font files embedded in the element will be
// removed on save
private:
std::map<wxString, EMBEDDED_FILE*> m_files;
std::vector<wxString> m_fontFiles;
protected:
bool m_embedFonts = false; // If set, fonts will be embedded in the element on save
// Otherwise, font files embedded in the element will be
// removed on save
};
+2 -2
View File
@@ -578,7 +578,7 @@ int FOOTPRINT_EDITOR_CONTROL::OpenDirectory( const TOOL_EVENT& aEvent )
{
path = table->FindRow( libName, true )->GetFullURI( true );
}
catch( IO_ERROR& err )
catch( IO_ERROR& )
{
// Do nothing: libName can be not found in globalTable if libName is in projectTable
}
@@ -656,7 +656,7 @@ int FOOTPRINT_EDITOR_CONTROL::OpenWithTextEditor( const TOOL_EVENT& aEvent )
{
libItemName = table->FindRow( libName, true )->GetFullURI( true );
}
catch( IO_ERROR& err )
catch( IO_ERROR& )
{
// Do nothing: libName can be not found in globalTable if libName is in projectTable
}