Skip to content

Commit 4d31e15

Browse files
Simplify the C++ example (#1867)
Signed-off-by: Darby Johnston <[email protected]>
1 parent edffd5d commit 4d31e15

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,12 @@ namespace otio = opentimelineio::OPENTIMELINEIO_VERSION;
106106
void
107107
main()
108108
{
109-
otio::ErrorStatus err;
110109
otio::SerializableObject::Retainer<otio::Timeline> tl(
111110
dynamic_cast<otio::Timeline*>(
112-
otio::Timeline::from_json_file("taco.otio", &err)
111+
otio::Timeline::from_json_file("taco.otio")
113112
)
114113
);
115-
const std::vector<otio::SerializableObject::Retainer<otio::Clip>> clips = (
116-
tl->find_clips()
117-
);
118-
for (const auto& cl : clips)
114+
for (const auto& cl : tl->find_clips())
119115
{
120116
otio::RationalTime dur = cl->duration();
121117
std::cout << "Name: " << cl->name() << " [";

0 commit comments

Comments
 (0)