Skip to content

Commit

Permalink
Remove unnecessary std::move
Browse files Browse the repository at this point in the history
This std::move prevents copy elision by the compiler.

PiperOrigin-RevId: 271345818
Change-Id: Ic9ab243a24a6f0fdc0b328bfe5571a34180f0061
  • Loading branch information
Asylo Team committed Sep 26, 2019
1 parent 48cc8aa commit 5893a6d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ class SgxRemoteAssertionGeneratorImplTest : public testing::Test {
ASYLO_ASSIGN_OR_RETURN(verifying_key_, signing_key->GetVerifyingKey());
signature_scheme_ = signing_key->GetSignatureScheme();

return std::move(absl::make_unique<SgxRemoteAssertionGeneratorImpl>(
std::move(signing_key), certificate_chains_));
return absl::make_unique<SgxRemoteAssertionGeneratorImpl>(
std::move(signing_key), certificate_chains_);
}

void TearDown() override {
Expand Down

0 comments on commit 5893a6d

Please sign in to comment.