diff options
author | kste <kste@google.com> | 2022-05-31 01:49:16 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-05-31 01:51:10 -0700 |
commit | 04351f8e3e4db2d7ba8b2b6064b4e64603c25732 (patch) | |
tree | 50459ec83b89dfaeb58fe51ec074ce88ecbf51f9 /cc/aead | |
parent | b826555f62a667148c524756338b5a2602d871fb (diff) | |
download | tink-04351f8e3e4db2d7ba8b2b6064b4e64603c25732.tar.gz |
Remove const which prevents copy elision.
PiperOrigin-RevId: 451988701
Diffstat (limited to 'cc/aead')
-rw-r--r-- | cc/aead/failing_aead.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/aead/failing_aead.cc b/cc/aead/failing_aead.cc index fc8d16655..73880c3b0 100644 --- a/cc/aead/failing_aead.cc +++ b/cc/aead/failing_aead.cc @@ -26,7 +26,7 @@ namespace { // An AEAD which will always return a kInternal status on API calls. class AlwaysFailAead : public Aead { public: - explicit AlwaysFailAead(const std::string message) + explicit AlwaysFailAead(std::string message) : message_(std::move(message)) {} crypto::tink::util::StatusOr<std::string> Encrypt( |