diff --git a/src/TimingSegments.h b/src/TimingSegments.h index 5e3d7a7c0d..72e9a267c2 100644 --- a/src/TimingSegments.h +++ b/src/TimingSegments.h @@ -65,7 +65,7 @@ template struct TimingSegment: public BaseTimingSegment { - TimingSegment(): BaseTimingSegment() {}; + TimingSegment(): BaseTimingSegment(-1) {}; TimingSegment(const DerivedSegment &other): BaseTimingSegment(other) {}; template @@ -206,7 +206,7 @@ struct WarpSegment : public TimingSegment * It is best to override the values as soon as possible. */ WarpSegment(): - TimingSegment(), lengthBeats(-1) {}; + TimingSegment(-1), lengthBeats(-1) {}; /** * @brief Create a copy of another Warp Segment. @@ -265,7 +265,7 @@ struct TickcountSegment : public TimingSegment * It is best to override the values as soon as possible. */ TickcountSegment(): - TimingSegment(), ticks(4) {}; + TimingSegment(-1), ticks(4) {}; /** * @brief Create a copy of another Tickcount Segment. @@ -328,7 +328,7 @@ struct ComboSegment : public TimingSegment * It is best to override the values as soon as possible. */ ComboSegment() : - TimingSegment(), combo(1) { } + TimingSegment(-1), combo(1) { } ComboSegment(const ComboSegment &other) : TimingSegment(other), @@ -382,7 +382,7 @@ struct LabelSegment : public TimingSegment * It is best to override the values as soon as possible. */ LabelSegment() : - TimingSegment(), label("") { } + TimingSegment(-1), label("") { } LabelSegment(const LabelSegment &other) : TimingSegment(other), @@ -500,7 +500,7 @@ struct TimeSignatureSegment : public TimingSegment * @brief Creates a simple Time Signature Segment with default values. */ TimeSignatureSegment(): - TimingSegment(), + TimingSegment(-1), numerator(4), denominator(4) { } TimeSignatureSegment(const TimeSignatureSegment &other) :