Refrain from copying SPICE_INFO.

This commit is contained in:
Jeff Young 2023-02-04 00:05:50 +00:00
parent a51dc8c9de
commit e8397a33bb
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ std::string SPICE_GENERATOR::ModelLine( const SPICE_ITEM& aItem ) const
result.append( fmt::format( ".model {} ", aItem.modelName ) );
size_t indentLength = result.length();
SIM_MODEL::SPICE_INFO spiceInfo = m_model.GetSpiceInfo();
const SIM_MODEL::SPICE_INFO& spiceInfo = m_model.GetSpiceInfo();
result.append( spiceInfo.modelType );
if ( !spiceInfo.isDefaultLevel && !spiceInfo.level.empty() )