mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-11 14:50:11 +00:00
Allow SWIG access to lset
SWIG doesn't like initializer lists because they are compile-time objects Fixes https://gitlab.com/kicad/code/kicad/-/issues/19326
This commit is contained in:
parent
ecc83221a1
commit
c2bfdaa6ae
@ -51,6 +51,16 @@ LSET::LSET( std::initializer_list<PCB_LAYER_ID> aList ) :
|
||||
}
|
||||
}
|
||||
|
||||
LSET::LSET( const std::vector<PCB_LAYER_ID>& aList ) :
|
||||
LSET()
|
||||
{
|
||||
for( PCB_LAYER_ID layer : aList )
|
||||
{
|
||||
if( layer >= 0 )
|
||||
set( layer );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
LSET::LSET( const LSEQ& aSeq ) :
|
||||
LSET()
|
||||
|
@ -45,6 +45,8 @@ public:
|
||||
|
||||
LSET( std::initializer_list<PCB_LAYER_ID> aList );
|
||||
|
||||
LSET( const std::vector<PCB_LAYER_ID>& aList );
|
||||
|
||||
LSET( const LSEQ& aSeq );
|
||||
|
||||
LSET( const LAYER_RANGE& aRange );
|
||||
|
Loading…
Reference in New Issue
Block a user