From ea242254d3d03431d557415ccfcf093cf4737e18 Mon Sep 17 00:00:00 2001 From: Mads Kiilerich Date: Sun, 5 May 2024 21:09:26 +0200 Subject: [PATCH] warnings: Remove redundant move in return statement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GCC 14 educates us: ../libs/ardour/session.cc: In member function ‘std::vector > ARDOUR::Session::source_search_path(ARDOUR::DataType) const’: ../libs/ardour/session.cc:6969:25: warning: redundant move in return statement [-Wredundant-move] 6969 | return std::move(sp); | ~~~~~~~~~^~~~ ../libs/ardour/session.cc:6969:25: note: remove ‘std::move’ call --- libs/ardour/session.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index ca900c99d6..6a9907b5a9 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -6971,7 +6971,7 @@ Session::source_search_path (DataType type) const break; } - return std::move(sp); + return sp; } void