Add assigment-operator (otherwise compilation error).

This commit is contained in:
Gerhard Hoffmann 2024-10-10 11:33:33 +02:00
parent 44e2ce24a3
commit 7e2f40a7b5

View File

@ -34,6 +34,13 @@ struct TimeRange {
m_duration = timeRange.m_duration; m_duration = timeRange.m_duration;
return *this; return *this;
} }
TimeRange &operator=(TimeRange const &timeRange) {
m_start = timeRange.m_start;
m_end = timeRange.m_end;
m_duration = timeRange.m_duration;
return *this;
}
}; };
#endif // TIME_RANGE_H_INCLUDED #endif // TIME_RANGE_H_INCLUDED