Skip to content

Commit

Permalink
Fixed for GCC 7
Browse files Browse the repository at this point in the history
  • Loading branch information
dutor committed Dec 31, 2019
1 parent 64c9632 commit f010158
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/graph/LimitExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void LimitExecutor::feedResult(std::unique_ptr<InterimResult> result) {
StatusOr<std::unique_ptr<InterimResult>> LimitExecutor::setupInterimResult() {
auto result = std::make_unique<InterimResult>(std::move(colNames_));
if (rows_.empty()) {
return result;
return std::move(result);
}

auto rsWriter = std::make_unique<RowSetWriter>(inputs_->schema());
Expand Down Expand Up @@ -121,7 +121,7 @@ StatusOr<std::unique_ptr<InterimResult>> LimitExecutor::setupInterimResult() {
if (rsWriter != nullptr) {
result->setInterim(std::move(rsWriter));
}
return result;
return std::move(result);
}


Expand Down
4 changes: 2 additions & 2 deletions src/graph/OrderByExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Status OrderByExecutor::beforeExecute() {
StatusOr<std::unique_ptr<InterimResult>> OrderByExecutor::setupInterimResult() {
auto result = std::make_unique<InterimResult>(std::move(colNames_));
if (rows_.empty()) {
return result;
return std::move(result);
}

auto schema = inputs_->schema();
Expand Down Expand Up @@ -201,7 +201,7 @@ StatusOr<std::unique_ptr<InterimResult>> OrderByExecutor::setupInterimResult() {
}

result->setInterim(std::move(rsWriter));
return result;
return std::move(result);
}

void OrderByExecutor::setupResponse(cpp2::ExecutionResponse &resp) {
Expand Down

0 comments on commit f010158

Please sign in to comment.