Revert "Fix Compile Warnings (#5963)"

This reverts commit b83e16dbdd.

Found regressions like auto orientation didn't work anymore after this change, revert it
This commit is contained in:
SoftFever
2024-08-12 00:00:20 +08:00
parent 0286c36f42
commit 7082e945b1
184 changed files with 1091 additions and 461 deletions

View File

@@ -1071,7 +1071,7 @@ bool StackImpl::has_redo_snapshot() const
// BBS: undo-redo until modify record
auto it = std::lower_bound(m_snapshots.begin(), m_snapshots.end(), Snapshot(m_active_snapshot_time));
for (; it != m_snapshots.end(); ++it) {
for (it; it != m_snapshots.end(); ++it) {
if (snapshot_modifies_project(*it))
return true;
}
@@ -1340,12 +1340,12 @@ bool StackImpl::has_real_change_from(size_t time) const
Snapshot(m_active_snapshot_time));
if (it_active == m_snapshots.end()) return true;
if (it_active > it_time) {
for (; it_time < it_active; ++it_time) {
for (it_time; it_time < it_active; ++it_time) {
if (snapshot_modifies_project(*it_time))
return true;
}
} else {
for (; it_active < it_time; ++it_active) {
for (it_active; it_active < it_time; ++it_active) {
if (snapshot_modifies_project(*it_active))
return true;
}