Add assigment-operator (otherwise compilation error).
This commit is contained in:
parent
44e2ce24a3
commit
7e2f40a7b5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user