From 387031fa2c73f7c2dd70dc33d49611e66fd94539 Mon Sep 17 00:00:00 2001 From: Darby Johnston Date: Tue, 1 Apr 2025 16:42:22 -0700 Subject: [PATCH] Simplify the C++ example Signed-off-by: Darby Johnston --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 594a64ae90..297aed333a 100644 --- a/README.md +++ b/README.md @@ -106,16 +106,12 @@ namespace otio = opentimelineio::OPENTIMELINEIO_VERSION; void main() { - otio::ErrorStatus err; otio::SerializableObject::Retainer tl( dynamic_cast( - otio::Timeline::from_json_file("taco.otio", &err) + otio::Timeline::from_json_file("taco.otio") ) ); - const std::vector> clips = ( - tl->find_clips() - ); - for (const auto& cl : clips) + for (const auto& cl : tl->find_clips()) { otio::RationalTime dur = cl->duration(); std::cout << "Name: " << cl->name() << " [";