diff widgets/CommandHistory.cpp @ 908:4a578a360011 cxx11

More type fixes
author Chris Cannam
date Tue, 10 Mar 2015 13:22:10 +0000
parents 102ffad481e6
children c91878670297
line wrap: on
line diff
--- a/widgets/CommandHistory.cpp	Tue Mar 10 10:31:27 2015 +0000
+++ b/widgets/CommandHistory.cpp	Tue Mar 10 13:22:10 2015 +0000
@@ -420,14 +420,14 @@
 CommandHistory::documentSaved()
 {
     closeBundle();
-    m_savedAt = m_undoStack.size();
+    m_savedAt = int(m_undoStack.size());
 }
 
 void
 CommandHistory::clipCommands()
 {
-    if ((int)m_undoStack.size() > m_undoLimit) {
-	m_savedAt -= (m_undoStack.size() - m_undoLimit);
+    if (int(m_undoStack.size()) > m_undoLimit) {
+	m_savedAt -= (int(m_undoStack.size()) - m_undoLimit);
     }
 
     clipStack(m_undoStack, m_undoLimit);