Skip to content

Commit

Permalink
Remove misleading calls to std::move (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwyzard committed Nov 16, 2020
1 parent 060c512 commit facd164
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CUDADataFormats/SiPixelDigi/src/SiPixelDigiErrorsCUDA.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ SiPixelDigiErrorsCUDA::HostDataError SiPixelDigiErrorsCUDA::dataErrorToHostAsync
}
auto err = *error_h;
err.set_data(data.get());
return HostDataError(std::move(err), std::move(data));
return HostDataError(err, std::move(data));
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void SiPixelDigiErrorsSoAFromCUDA::acquire(const edm::Event& iEvent,
const auto& gpuDigiErrors = ctx.get(iEvent, digiErrorGetToken_);

auto tmp = gpuDigiErrors.dataErrorToHostAsync(ctx.stream());
error_ = std::move(tmp.first);
error_ = tmp.first;
data_ = std::move(tmp.second);
formatterErrors_ = &(gpuDigiErrors.formatterErrors());
}
Expand Down

0 comments on commit facd164

Please sign in to comment.