r23279 by jghali - Fix signed/unsigned comparison warnings

scribus-commit scribus-commit at lists.scribus.net
Sun Oct 27 13:55:23 UTC 2019


Author: jghali
Date: Sun Oct 27 13:55:23 2019
New Revision: 23279

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23279
Log:
Fix signed/unsigned comparison warnings

Modified:
    trunk/Scribus/scribus/undostack.cpp

Modified: trunk/Scribus/scribus/undostack.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23279&path=/trunk/Scribus/scribus/undostack.cpp
==============================================================================
--- trunk/Scribus/scribus/undostack.cpp	(original)
+++ trunk/Scribus/scribus/undostack.cpp	Sun Oct 27 13:55:23 2019
@@ -171,9 +171,9 @@
 
 void UndoStack::clear()
 {
-	for (int i = 0; i < m_undoActions_.size(); ++i)
+	for (size_t i = 0; i < m_undoActions_.size(); ++i)
 		delete m_undoActions_[i];
-	for (int i = 0; i < m_redoActions_.size(); ++i)
+	for (size_t i = 0; i < m_redoActions_.size(); ++i)
 		delete m_redoActions_[i];
 	m_undoActions_.clear();
 	m_redoActions_.clear();




More information about the scribus-commit mailing list