aboutsummaryrefslogtreecommitdiff
path: root/cc/primitive_set.h
diff options
context:
space:
mode:
authorlizatretyakova <lizatretyakova@google.com>2021-10-29 04:41:48 -0700
committerCopybara-Service <copybara-worker@google.com>2021-10-29 04:42:40 -0700
commit62f2f0d826aa240fc132a5adbe41005bc9051e96 (patch)
tree8800da6e02718e1b22b46289d1c42c142cebddca /cc/primitive_set.h
parent466ec4de391205ead0720e7c7b2e59a4e0e67839 (diff)
downloadtink-62f2f0d826aa240fc132a5adbe41005bc9051e96.tar.gz
Replace the deprecated crypto::tink::util::error::NOT_FOUND usages with its absl version absl::StatusCode::kNotFound.
This CL is a part of Tink migration to using absl::Status{,Or} and absl::StatusCode. PiperOrigin-RevId: 406332913
Diffstat (limited to 'cc/primitive_set.h')
-rw-r--r--cc/primitive_set.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/primitive_set.h b/cc/primitive_set.h
index 1360a2a21..8ea306d8d 100644
--- a/cc/primitive_set.h
+++ b/cc/primitive_set.h
@@ -21,6 +21,7 @@
#include <vector>
#include "absl/memory/memory.h"
+#include "absl/status/status.h"
#include "absl/synchronization/mutex.h"
#include "tink/crypto_format.h"
#include "tink/util/errors.h"
@@ -128,7 +129,7 @@ class PrimitiveSet {
typename CiphertextPrefixToPrimitivesMap::iterator found =
primitives_.find(std::string(identifier));
if (found == primitives_.end()) {
- return ToStatusF(crypto::tink::util::error::NOT_FOUND,
+ return ToStatusF(absl::StatusCode::kNotFound,
"No primitives found for identifier '%s'.", identifier);
}
return &(found->second);