From 8f8796b32077325fe79ef2e6897eedef86aeae47 Mon Sep 17 00:00:00 2001 From: Katarzyna Miernikiewicz Date: Fri, 25 Sep 2020 12:00:52 +0000 Subject: [PATCH] changed sapi::StatusOr to absl::StatusOr --- oss-internship-2020/openjpeg/examples/decompress_example.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oss-internship-2020/openjpeg/examples/decompress_example.cc b/oss-internship-2020/openjpeg/examples/decompress_example.cc index 4d8630a..a090a22 100644 --- a/oss-internship-2020/openjpeg/examples/decompress_example.cc +++ b/oss-internship-2020/openjpeg/examples/decompress_example.cc @@ -73,12 +73,12 @@ int main(int argc, char* argv[]) { sapi::v::ConstCStr in_file_v(in_file.c_str()); // Initialize library's main data-holders. - sapi::StatusOr stream = + absl::StatusOr stream = api.opj_stream_create_default_file_stream(in_file_v.PtrBefore(), 1); CHECK(stream.ok()) << "Stream initialization failed: " << stream.status(); sapi::v::RemotePtr stream_pointer(stream.value()); - sapi::StatusOr codec = api.opj_create_decompress(OPJ_CODEC_JP2); + absl::StatusOr codec = api.opj_create_decompress(OPJ_CODEC_JP2); CHECK(codec.ok()) << "Codec initialization failed: " << stream.status(); sapi::v::RemotePtr codec_pointer(codec.value()); @@ -86,7 +86,7 @@ int main(int argc, char* argv[]) { status = api.opj_set_default_decoder_parameters(parameters.PtrBoth()); CHECK(status.ok()) << "Parameters initialization failed " << status; - sapi::StatusOr bool_status = + absl::StatusOr bool_status = api.opj_setup_decoder(&codec_pointer, parameters.PtrBefore()); CHECK(bool_status.ok() && bool_status.value()) << "Decoder setup failed";