diff --git a/pcbnew/import_gfx/dxf_import_plugin.h b/pcbnew/import_gfx/dxf_import_plugin.h index bd698caa99..83ffe1484e 100644 --- a/pcbnew/import_gfx/dxf_import_plugin.h +++ b/pcbnew/import_gfx/dxf_import_plugin.h @@ -145,8 +145,9 @@ public: const wxArrayString GetFileExtensions() const override { - // N.B. The extra "" hints for some compilers that the array should not be optimized out - return wxArrayString( 1, { "dxf", "" } ); + wxArrayString list; + list.Add( "dxf" ); + return list; } bool Load( const wxString& aFileName ) override; diff --git a/pcbnew/import_gfx/svg_import_plugin.h b/pcbnew/import_gfx/svg_import_plugin.h index c9e05f7558..07ecd9f293 100644 --- a/pcbnew/import_gfx/svg_import_plugin.h +++ b/pcbnew/import_gfx/svg_import_plugin.h @@ -44,8 +44,9 @@ public: const wxArrayString GetFileExtensions() const override { - // N.B. The extra "" hints for some compilers that the array should not be optimized out - return wxArrayString( 1, { "svg", "" } ); + wxArrayString list; + list.Add( "svg" ); + return list; } /**