Fix warning: moving a temporary object prevents copy elision [-Wpessimizing-move]

This commit is contained in:
Alex Shvartzkop 2024-06-21 19:32:33 +03:00
parent c549a214c9
commit 84091b163e
1 changed files with 2 additions and 2 deletions

View File

@ -1339,10 +1339,10 @@ ESPICE::ESPICE( wxXmlNode* aSpice, IO_BASE* aIo ) :
/*
* <!ELEMENT spice (pinmapping, model)>
*/
pinmapping = std::move( std::make_unique<EPINMAPPING>( aSpice ) );
pinmapping = std::make_unique<EPINMAPPING>( aSpice );
if( aSpice->GetName() == "model" )
model = std::move( std::make_unique<EMODEL>( aSpice ) );
model = std::make_unique<EMODEL>( aSpice );
AdvanceProgressPhase();
}