Fix warnings

This commit is contained in:
Jon Evans 2023-12-19 22:38:34 -05:00
parent 1c895fe18c
commit b1695add9e
2 changed files with 3 additions and 3 deletions

View File

@ -309,7 +309,7 @@ std::unique_ptr<LIBEVAL::VAR_REF> PCBEXPR_UCODE::CreateVarRef( const wxString& a
if( aField.length() == 0 ) // return reference to base object
{
return std::move( vref );
return vref;
}
wxString field( aField );
@ -353,7 +353,7 @@ std::unique_ptr<LIBEVAL::VAR_REF> PCBEXPR_UCODE::CreateVarRef( const wxString& a
if( vref->GetType() == LIBEVAL::VT_UNDEFINED )
vref->SetType( LIBEVAL::VT_PARSE_ERROR );
return std::move( vref );
return vref;
}

View File

@ -2109,7 +2109,7 @@ void EDIT_TOOL::DeleteItems( const PCB_SELECTION& aItems, bool aIsCut )
FOOTPRINT* parentFP = board_item->GetParentFootprint();
if( PCB_GROUP* parentGroup = board_item->GetParentGroup() )
if( board_item->GetParentGroup() )
commit.Stage( board_item, CHT_UNGROUP );
switch( item->Type() )