--- a/src/editHistory.cpp Sat Jan 28 14:13:01 2017 +0200 +++ b/src/editHistory.cpp Sat Jan 28 14:14:28 2017 +0200 @@ -38,7 +38,7 @@ const Changeset& set = changesetAt (position()); // Iterate the list in reverse and undo all actions - for (int i = length(set) - 1; i >= 0; --i) + for (int i = countof(set) - 1; i >= 0; --i) { AbstractHistoryEntry* change = set[i]; change->undo(); @@ -51,7 +51,7 @@ void EditHistory::redo() { - if (position() == length(m_changesets)) + if (position() == countof(m_changesets)) return; setIgnoring (true); @@ -110,7 +110,7 @@ int EditHistory::size() const { - return length(m_changesets); + return countof(m_changesets); } const EditHistory::Changeset& EditHistory::changesetAt (int pos) const