Skip to content

Commit

Permalink
Merge pull request #173 from dentiny/hjiang/fix-move-compilation
Browse files Browse the repository at this point in the history
Fix compilation via move
  • Loading branch information
Dtenwolde authored Dec 2, 2024
2 parents bfe3a87 + dfa67d1 commit 3db82c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ unique_ptr<FunctionData> 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ unique_ptr<FunctionData> WeaklyConnectedComponentFunctionData::WeaklyConnectedCo
unique_ptr<FunctionData> WeaklyConnectedComponentFunctionData::Copy() const {
auto result = make_uniq<WeaklyConnectedComponentFunctionData>(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 {
Expand Down
2 changes: 1 addition & 1 deletion src/core/functions/table/match.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ unique_ptr<ParsedExpression> PGQMatchFunction::AddPathQuantifierCondition(
auto between_expression = make_uniq<BetweenExpression>(
std::move(addition_function), std::move(lower_limit),
std::move(upper_limit));
return between_expression;
return std::move(between_expression);
}

void PGQMatchFunction::AddPathFinding(
Expand Down

0 comments on commit 3db82c2

Please sign in to comment.