updates for C++17

This commit is contained in:
itsmattkc
2022-05-11 10:50:47 -07:00
parent 490bad990a
commit 7c12b6dc16
10 changed files with 67 additions and 59 deletions
+3 -3
View File
@@ -167,9 +167,9 @@ void TimelineMarkerList::InsertIntoList(TimelineMarker *marker)
for (auto it=markers_.begin(); it!=markers_.end(); it++) {
TimelineMarker *m = *it;
Q_ASSERT(m->time() != marker->time());
Q_ASSERT(m->time().in() != marker->time().in());
if (m->time() > marker->time()) {
if (m->time().in() > marker->time().in()) {
markers_.insert(it, marker);
found = true;
break;
@@ -316,7 +316,7 @@ Project* MarkerChangeTimeCommand::GetRelevantProject() const
void MarkerChangeTimeCommand::redo()
{
old_time_ = marker_->time_range();
old_time_ = marker_->time();
marker_->set_time(new_time_);
}