Skip to content
Snippets Groups Projects
Commit af4ff972 authored by thaidn's avatar thaidn Committed by Tink Team
Browse files

Fixing broken Ubuntu build.

PiperOrigin-RevId: 225616834
GitOrigin-RevId: 38c6f46e25cdd123a59e3ca472cb2ef9282d9628
parent 6796be0f
No related branches found
No related tags found
No related merge requests found
......@@ -41,22 +41,7 @@ const Status& GetUnknown() {
} // namespace
// Keep synchronized with google3/third_party/tink/copybara/cc.bara.sky
#ifndef __APPLE__
Status::Status(const ::util::Status& status)
: code_(::crypto::tink::util::error::OK) {
if (status.ok()) return;
code_ = static_cast<::crypto::tink::util::error::Code>(
::util::RetrieveErrorCode(status));
message_ = std::string(status.message());
}
Status::operator ::util::Status() const {
if (ok()) return ::util::OkStatus();
return ::util::Status(static_cast<absl::StatusCode>(code_), message_);
}
#endif
// end of block in sync with google3/third_party/tink/copybara/cc.bara.sky
// placeholder_implicit_type_conversion, please ignore
Status::Status() : code_(::crypto::tink::util::error::OK), message_("") {
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment