Generalize default footprint fields.
Fixes https://gitlab.com/kicad/code/kicad/issues/2289
This commit is contained in:
parent
7305f407fc
commit
3c3984a6fc
|
@ -38,9 +38,14 @@ extern const char* traceSettings;
|
|||
JSON_SETTINGS::JSON_SETTINGS( const std::string& aFilename, SETTINGS_LOC aLocation,
|
||||
int aSchemaVersion, bool aCreateIfMissing, bool aWriteFile,
|
||||
nlohmann::json aDefault ) :
|
||||
nlohmann::json( std::move( aDefault ) ), m_filename( aFilename ), m_legacy_filename( "" ),
|
||||
m_location( aLocation ), m_createIfMissing( aCreateIfMissing ), m_writeFile( aWriteFile ),
|
||||
m_schemaVersion( aSchemaVersion ), m_manager( nullptr )
|
||||
nlohmann::json( std::move( aDefault ) ),
|
||||
m_filename( aFilename ),
|
||||
m_legacy_filename( "" ),
|
||||
|