diff --git a/src/TimingData.h b/src/TimingData.h index 5fcd4d083f..0fa5c10e4d 100644 --- a/src/TimingData.h +++ b/src/TimingData.h @@ -12,9 +12,6 @@ struct lua_State; -/** @brief Compare a TimingData segment's properties with one another. */ -#define COMPARE(x) if(this->x!=other.x) return false; - /* convenience functions to handle static casting */ template inline T ToDerived( const TimingSegment *t, TimingSegmentType tst ) @@ -418,8 +415,7 @@ public: } } - COMPARE( m_fBeat0OffsetInSeconds ); - return true; + return this->m_fBeat0OffsetInSeconds == other.m_fBeat0OffsetInSeconds; } /** @@ -474,8 +470,6 @@ protected: std::array, NUM_TimingSegmentType> m_avpTimingSegments; }; -#undef COMPARE - #endif /**