Browse Source

Add array hint to wxArrayString contructors

This may be required for some compilers to prevent premature casting to
a single element.
pull/13/head
Seth Hillbrand 7 years ago
parent
commit
8757fcf676
  1. 3
      pcbnew/import_gfx/dxf_import_plugin.h
  2. 3
      pcbnew/import_gfx/svg_import_plugin.h

3
pcbnew/import_gfx/dxf_import_plugin.h

@ -145,7 +145,8 @@ public:
const wxArrayString GetFileExtensions() const override
{
return wxArrayString( 1, { "dxf" } );
// N.B. The extra "" hints for some compilers that the array should not be optimized out
return wxArrayString( 1, { "dxf", "" } );
}
bool Load( const wxString& aFileName ) override;

3
pcbnew/import_gfx/svg_import_plugin.h

@ -44,7 +44,8 @@ public:
const wxArrayString GetFileExtensions() const override
{
return wxArrayString( 1, { "svg" } );
// N.B. The extra "" hints for some compilers that the array should not be optimized out
return wxArrayString( 1, { "svg", "" } );
}
/**

Loading…
Cancel
Save