From 4f4f03a98a53a610e65447b91d5271916d55b8e0 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 4 Dec 2018 20:03:23 +0100 Subject: [PATCH] Try to fix compil issue on OSX (commit 8757fcf6 breaks the import gfx dialog) --- pcbnew/import_gfx/dxf_import_plugin.h | 5 +++-- pcbnew/import_gfx/svg_import_plugin.h | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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; } /**