From dfa67d1629837c2c9f0940827eea975f5fc6c861 Mon Sep 17 00:00:00 2001 From: dentiny Date: Mon, 2 Dec 2024 10:42:49 +0000 Subject: [PATCH] Fix compilation via move --- src/core/functions/function_data/pagerank_function_data.cpp | 2 +- .../function_data/weakly_connected_component_function_data.cpp | 2 +- src/core/functions/table/match.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/functions/function_data/pagerank_function_data.cpp b/src/core/functions/function_data/pagerank_function_data.cpp index f7562183..ee38348f 100644 --- a/src/core/functions/function_data/pagerank_function_data.cpp +++ b/src/core/functions/function_data/pagerank_function_data.cpp @@ -35,7 +35,7 @@ unique_ptr PageRankFunctionData::Copy() const { result->state_initialized = state_initialized; result->converged = converged; // Note: state_lock is not copied as mutexes are not copyable - return result; + return std::move(result); } // Equals method diff --git a/src/core/functions/function_data/weakly_connected_component_function_data.cpp b/src/core/functions/function_data/weakly_connected_component_function_data.cpp index e16e81cb..ca63eb02 100644 --- a/src/core/functions/function_data/weakly_connected_component_function_data.cpp +++ b/src/core/functions/function_data/weakly_connected_component_function_data.cpp @@ -30,7 +30,7 @@ unique_ptr WeaklyConnectedComponentFunctionData::WeaklyConnectedCo unique_ptr WeaklyConnectedComponentFunctionData::Copy() const { auto result = make_uniq(context, csr_id, componentId); result->component_id_initialized = component_id_initialized; - return result; + return std::move(result); } bool WeaklyConnectedComponentFunctionData::Equals(const FunctionData &other_p) const { diff --git a/src/core/functions/table/match.cpp b/src/core/functions/table/match.cpp index 52aac7bb..e67d1bab 100644 --- a/src/core/functions/table/match.cpp +++ b/src/core/functions/table/match.cpp @@ -620,7 +620,7 @@ unique_ptr PGQMatchFunction::AddPathQuantifierCondition( auto between_expression = make_uniq( std::move(addition_function), std::move(lower_limit), std::move(upper_limit)); - return between_expression; + return std::move(between_expression); } void PGQMatchFunction::AddPathFinding(