From dc34f80386ef14c1e46d4ad85a07f2ce60962cce Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Mon, 12 Jul 2021 11:56:00 -0700 Subject: [PATCH] timerangelistframeiterator: initialize values even with default constructor --- app/common/timerange.cpp | 5 +++++ app/common/timerange.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/common/timerange.cpp b/app/common/timerange.cpp index a9cbad326..ac04bdd88 100644 --- a/app/common/timerange.cpp +++ b/app/common/timerange.cpp @@ -296,6 +296,11 @@ uint qHash(const TimeRange &r, uint seed) return qHash(r.in(), seed) ^ qHash(r.out(), seed); } +TimeRangeListFrameIterator::TimeRangeListFrameIterator() : + TimeRangeListFrameIterator(TimeRangeList(), rational::NaN) +{ +} + TimeRangeListFrameIterator::TimeRangeListFrameIterator(const TimeRangeList &list, const rational &timebase) : list_(list), timebase_(timebase), diff --git a/app/common/timerange.h b/app/common/timerange.h index 3a7be3054..14b12ebae 100644 --- a/app/common/timerange.h +++ b/app/common/timerange.h @@ -151,7 +151,7 @@ private: class TimeRangeListFrameIterator { public: - TimeRangeListFrameIterator() = default; + TimeRangeListFrameIterator(); TimeRangeListFrameIterator(const TimeRangeList &list, const rational &timebase); bool GetNext(rational *out);