From 80c426f577a88948f0c1689fe822997d9f4dcb0b Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Tue, 25 Oct 2022 07:49:09 +0200 Subject: [PATCH] Sim: Fix writing inferred model for tlines --- eeschema/sim/sim_model_tline.cpp | 8 +++----- eeschema/sim/sim_model_tline.h | 2 -- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/eeschema/sim/sim_model_tline.cpp b/eeschema/sim/sim_model_tline.cpp index 2857ef08bd..ab277afeea 100644 --- a/eeschema/sim/sim_model_tline.cpp +++ b/eeschema/sim/sim_model_tline.cpp @@ -70,9 +70,7 @@ std::string SPICE_GENERATOR_TLINE::ModelLine( const SPICE_ITEM& aItem ) const SIM_MODEL_TLINE::SIM_MODEL_TLINE( TYPE aType ) : - SIM_MODEL( aType, - std::make_unique( *this ) ), - m_isInferred( false ) + SIM_MODEL( aType, std::make_unique( *this ) ) { static std::vector z0 = makeZ0ParamInfos(); static std::vector rlgc = makeRlgcParamInfos(); @@ -100,7 +98,7 @@ void SIM_MODEL_TLINE::WriteDataSchFields( std::vector& aFields ) cons { SIM_MODEL::WriteDataSchFields( aFields ); - if( m_isInferred ) + if( IsInferred() ) inferredWriteDataFields( aFields ); } @@ -109,7 +107,7 @@ void SIM_MODEL_TLINE::WriteDataLibFields( std::vector& aFields ) cons { SIM_MODEL::WriteDataLibFields( aFields ); - if( m_isInferred ) + if( IsInferred() ) inferredWriteDataFields( aFields ); } diff --git a/eeschema/sim/sim_model_tline.h b/eeschema/sim/sim_model_tline.h index bbb91b09aa..4649b40c5c 100644 --- a/eeschema/sim/sim_model_tline.h +++ b/eeschema/sim/sim_model_tline.h @@ -54,8 +54,6 @@ private: static std::vector makeZ0ParamInfos(); static std::vector makeRlgcParamInfos(); - - bool m_isInferred; }; #endif // SIM_MODEL_TLINE_H