s/Instatiable/Instantiable/, s/Instatiate/Instantiate/

This commit is contained in:
Mikolaj Wielgus 2021-11-29 20:56:23 +01:00
parent 276f9abf8a
commit 84dd515b6a
2 changed files with 8 additions and 8 deletions

View File

@ -271,7 +271,7 @@ constexpr bool IsNullType( const KICAD_T aType )
return aType <= 0; return aType <= 0;
} }
constexpr bool IsInstatiableType( const KICAD_T aType ) constexpr bool IsInstantiableType( const KICAD_T aType )
{ {
if( IsNullType( aType ) ) if( IsNullType( aType ) )
return false; return false;
@ -472,7 +472,7 @@ constexpr bool IsTypeCorrect( KICAD_T aType )
constexpr bool IsTypeAvailable( KICAD_T aType ) constexpr bool IsTypeAvailable( KICAD_T aType )
{ {
if( !IsInstatiableType( aType ) ) if( !IsInstantiableType( aType ) )
return false; return false;
if( IsEeschemaType( aType ) ) if( IsEeschemaType( aType ) )

View File

@ -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 ) ) if( !IsEeschemaType( aType ) )
return nullptr; return nullptr;
if( !IsInstatiableType( aType ) ) if( !IsInstantiableType( aType ) )
return nullptr; return nullptr;
switch( aType ) switch( aType )
@ -148,7 +148,7 @@ BOOST_AUTO_TEST_CASE( Move )
{ {
KICAD_T type = static_cast<KICAD_T>( i ); 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 ) if( item == nullptr )
continue; continue;
@ -189,7 +189,7 @@ BOOST_AUTO_TEST_CASE( Rotate )
{ {
KICAD_T type = static_cast<KICAD_T>( i ); 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 ) if( item == nullptr )
continue; continue;
@ -265,7 +265,7 @@ BOOST_AUTO_TEST_CASE( MirrorHorizontally )
{ {
KICAD_T type = static_cast<KICAD_T>( i ); 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 ) if( item == nullptr )
continue; continue;
@ -308,7 +308,7 @@ BOOST_AUTO_TEST_CASE( MirrorVertically )
{ {
KICAD_T type = static_cast<KICAD_T>( i ); 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 ) if( item == nullptr )
continue; continue;