From 84091b163eaffb325ce6bba0d936b4a0c020507b Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Fri, 21 Jun 2024 19:32:33 +0300 Subject: [PATCH] Fix warning: moving a temporary object prevents copy elision [-Wpessimizing-move] --- common/io/eagle/eagle_parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/io/eagle/eagle_parser.cpp b/common/io/eagle/eagle_parser.cpp index 70d56b6955..feecf38dca 100644 --- a/common/io/eagle/eagle_parser.cpp +++ b/common/io/eagle/eagle_parser.cpp @@ -1339,10 +1339,10 @@ ESPICE::ESPICE( wxXmlNode* aSpice, IO_BASE* aIo ) : /* * */ - pinmapping = std::move( std::make_unique( aSpice ) ); + pinmapping = std::make_unique( aSpice ); if( aSpice->GetName() == "model" ) - model = std::move( std::make_unique( aSpice ) ); + model = std::make_unique( aSpice ); AdvanceProgressPhase(); }