Generalize default footprint fields.

Fixes https://gitlab.com/kicad/code/kicad/issues/2289
This commit is contained in:
Jeff Young 2020-05-08 19:10:47 +01:00
parent 7305f407fc
commit 3c3984a6fc
18 changed files with 959 additions and 944 deletions

View File

@ -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( "" ),