7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-14 13:09:35 +00:00

Fix some warnings and improve memory layout.

This commit is contained in:
Alex Shvartzkop 2024-07-17 23:20:28 +03:00
parent d0292c39fc
commit 17f44c0dc1
2 changed files with 8 additions and 9 deletions

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
};

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
}