s/Instatiable/Instantiable/, s/Instatiate/Instantiate/
This commit is contained in:
parent
276f9abf8a
commit
84dd515b6a
|
@ -271,7 +271,7 @@ constexpr bool IsNullType( const KICAD_T aType )
|
|||
return aType <= 0;
|
||||
}
|
||||
|
||||
constexpr bool IsInstatiableType( const KICAD_T aType )
|
||||
constexpr bool IsInstantiableType( const KICAD_T aType )
|
||||
{
|
||||
if( IsNullType( aType ) )
|
||||
return false;
|
||||
|
@ -472,7 +472,7 @@ constexpr bool IsTypeCorrect( KICAD_T aType )
|
|||
|
||||
constexpr bool IsTypeAvailable( KICAD_T aType )
|
||||
{
|
||||
if( !IsInstatiableType( aType ) )
|
||||
if( !IsInstantiableType( aType ) )
|
||||
return false;
|
||||
|
||||
if( IsEeschemaType( aType ) )
|
||||
|
|
|
@ -63,12 +63,12 @@ public:
|
|||
};
|
||||
|
||||
|
||||
static EDA_ITEM* Instatiate( KICAD_T aType, SCH_SHEET* aSheet, LIB_SYMBOL* aSymbol, LIB_PIN* aPin )
|
||||
static EDA_ITEM* Instantiate( KICAD_T aType, SCH_SHEET* aSheet, LIB_SYMBOL* aSymbol, LIB_PIN* aPin )
|
||||
{
|
||||
if( !IsEeschemaType( aType ) )
|
||||
return nullptr;
|
||||
|
||||
if( !IsInstatiableType( aType ) )
|
||||
if( !IsInstantiableType( aType ) )
|
||||
return nullptr;
|
||||
|
||||
switch( aType )
|
||||
|
@ -148,7 +148,7 @@ BOOST_AUTO_TEST_CASE( Move )
|
|||
{
|
||||
KICAD_T type = static_cast<KICAD_T>( i );
|
||||
|
||||
auto item = std::unique_ptr<EDA_ITEM>( Instatiate( type, &m_sheet, &m_symbol, &m_pin ) );
|
||||
auto item = std::unique_ptr<EDA_ITEM>( Instantiate( type, &m_sheet, &m_symbol, &m_pin ) );
|
||||
|
||||
if( item == nullptr )
|
||||
continue;
|
||||
|
@ -189,7 +189,7 @@ BOOST_AUTO_TEST_CASE( Rotate )
|
|||
{
|
||||
KICAD_T type = static_cast<KICAD_T>( i );
|
||||
|
||||
auto item = std::unique_ptr<EDA_ITEM>( Instatiate( type, &m_sheet, &m_symbol, &m_pin ) );
|
||||
auto item = std::unique_ptr<EDA_ITEM>( Instantiate( type, &m_sheet, &m_symbol, &m_pin ) );
|
||||
|
||||
if( item == nullptr )
|
||||
continue;
|
||||
|
@ -265,7 +265,7 @@ BOOST_AUTO_TEST_CASE( MirrorHorizontally )
|
|||
{
|
||||
KICAD_T type = static_cast<KICAD_T>( i );
|
||||
|
||||
auto item = std::unique_ptr<EDA_ITEM>( Instatiate( type, &m_sheet, &m_symbol, &m_pin ) );
|
||||
auto item = std::unique_ptr<EDA_ITEM>( Instantiate( type, &m_sheet, &m_symbol, &m_pin ) );
|
||||
|
||||
if( item == nullptr )
|
||||
continue;
|
||||
|
@ -308,7 +308,7 @@ BOOST_AUTO_TEST_CASE( MirrorVertically )
|
|||
{
|
||||
KICAD_T type = static_cast<KICAD_T>( i );
|
||||
|
||||
auto item = std::unique_ptr<EDA_ITEM>( Instatiate( type, &m_sheet, &m_symbol, &m_pin ) );
|
||||
auto item = std::unique_ptr<EDA_ITEM>( Instantiate( type, &m_sheet, &m_symbol, &m_pin ) );
|
||||
|
||||
if( item == nullptr )
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue