diff --git a/include/core/typeinfo.h b/include/core/typeinfo.h index 38c483a2d7..967f2240bc 100644 --- a/include/core/typeinfo.h +++ b/include/core/typeinfo.h @@ -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 ) ) diff --git a/qa/eeschema/test_sch_item.cpp b/qa/eeschema/test_sch_item.cpp index 32352fc08e..e667465f0c 100644 --- a/qa/eeschema/test_sch_item.cpp +++ b/qa/eeschema/test_sch_item.cpp @@ -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( i ); - auto item = std::unique_ptr( Instatiate( type, &m_sheet, &m_symbol, &m_pin ) ); + auto item = std::unique_ptr( 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( i ); - auto item = std::unique_ptr( Instatiate( type, &m_sheet, &m_symbol, &m_pin ) ); + auto item = std::unique_ptr( 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( i ); - auto item = std::unique_ptr( Instatiate( type, &m_sheet, &m_symbol, &m_pin ) ); + auto item = std::unique_ptr( 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( i ); - auto item = std::unique_ptr( Instatiate( type, &m_sheet, &m_symbol, &m_pin ) ); + auto item = std::unique_ptr( Instantiate( type, &m_sheet, &m_symbol, &m_pin ) ); if( item == nullptr ) continue;