diff --git a/pcbnew/pcbexpr_evaluator.cpp b/pcbnew/pcbexpr_evaluator.cpp index 34b4a20e37..1fac46b566 100644 --- a/pcbnew/pcbexpr_evaluator.cpp +++ b/pcbnew/pcbexpr_evaluator.cpp @@ -309,7 +309,7 @@ std::unique_ptr 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 PCBEXPR_UCODE::CreateVarRef( const wxString& a if( vref->GetType() == LIBEVAL::VT_UNDEFINED ) vref->SetType( LIBEVAL::VT_PARSE_ERROR ); - return std::move( vref ); + return vref; } diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index b7ae8a5c4a..00acdb7b99 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -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() )