From cf1825c39138becce6cade2032bebc0fee74da6f Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Mon, 30 Oct 2023 19:09:05 +0100 Subject: [PATCH] Use exit_on_failure --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index dcc4ac2..5167a25 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -19,8 +19,8 @@ std::vector generate_random_points_vector(int num_points) { } int main() { - auto rec = rerun::RecordingStream("rerun_example_cpp"); - rec.spawn().throw_on_failure(); + const auto rec = rerun::RecordingStream("rerun_example_cpp"); + rec.spawn().exit_on_failure(); rec.log_timeless("world", rerun::ViewCoordinates::RIGHT_HAND_Z_UP); // Set an up-axis @@ -57,7 +57,7 @@ int main() { ); // Read image - std::string image_path = "rerun-logo.png"; + const auto image_path = "rerun-logo.png"; cv::Mat img = imread(image_path, cv::IMREAD_COLOR); if (img.empty()) { std::cout << "Could not read the image: " << image_path << std::endl;