From 646eaec9c81d1e76ac0640788029bafe0a4e936d Mon Sep 17 00:00:00 2001 From: Joshua Minor Date: Mon, 27 Oct 2025 21:14:23 -0700 Subject: [PATCH] Reorder initializers to silence a warning. Signed-off-by: Joshua Minor --- src/opentimelineio/color.cpp | 12 ++++++------ src/opentimelineio/item.cpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/opentimelineio/color.cpp b/src/opentimelineio/color.cpp index 16633c4df..7dcd6113e 100644 --- a/src/opentimelineio/color.cpp +++ b/src/opentimelineio/color.cpp @@ -14,17 +14,17 @@ Color::Color( double const b, double const a, std::string const& name) - : _name(name), - _r(r), + : _r(r), _g(g), _b(b), - _a(a) {} + _a(a), + _name(name) {} -Color::Color(Color const& other) : _name(other.name()), - _r(other.r()), +Color::Color(Color const& other) : _r(other.r()), _g(other.g()), _b(other.b()), - _a(other.a()) {} + _a(other.a()), + _name(other.name()) {} const Color Color::pink(1.0, 0.0, 1.0, 1.0, "Pink"); const Color Color::red(1.0, 0.0, 0.0, 1.0, "Red"); diff --git a/src/opentimelineio/item.cpp b/src/opentimelineio/item.cpp index ea22858f1..8784b1936 100644 --- a/src/opentimelineio/item.cpp +++ b/src/opentimelineio/item.cpp @@ -22,8 +22,8 @@ Item::Item( , _source_range(source_range) , _effects(effects.begin(), effects.end()) , _markers(markers.begin(), markers.end()) - , _enabled(enabled) , _color(color) + , _enabled(enabled) {} Item::~Item()