diff -r d6cbf21af8fb -r c51941e590b6 src/history.cpp --- a/src/history.cpp Thu Oct 03 21:48:11 2013 +0300 +++ b/src/history.cpp Sat Oct 05 12:51:13 2013 +0300 @@ -37,7 +37,7 @@ { if (m_changesets.size() == 0 || pos() == -1) return; - const list& set = changeset (pos()); + const Changeset& set = changeset (pos()); g_fullRefresh = false; // Iterate the list in reverse and undo all actions @@ -60,7 +60,7 @@ { if (pos() == (long) m_changesets.size()) return; - const list& set = changeset (pos() + 1); + const Changeset& set = changeset (pos() + 1); g_fullRefresh = false; // Redo things - in the order as they were done in the first place @@ -80,8 +80,8 @@ // ============================================================================= // ----------------------------------------------------------------------------- void History::clear() -{ for (List set : m_changesets) - for (AbstractHistoryEntry* change : set) +{ for (Changeset set : m_changesets) + for (auto change : set) delete change; m_changesets.clear();