Fix warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
This commit is contained in:
parent
c549a214c9
commit
84091b163e
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue