diff view/PaneStack.cpp @ 806:4c8ca536b54f warnfix_no_size_t

Some more unsigned/long removal
author Chris Cannam
date Tue, 17 Jun 2014 15:36:56 +0100
parents b6dc57688c72
children 57efeb75880d
line wrap: on
line diff
--- a/view/PaneStack.cpp	Tue Jun 17 15:18:06 2014 +0100
+++ b/view/PaneStack.cpp	Tue Jun 17 15:36:56 2014 +0100
@@ -98,9 +98,9 @@
     currentIndicator->setScaledContents(true);
     currentIndicator->setVisible(m_showAccessories);
 
-    long initialCentreFrame = -1;
-    for (int i = 0; i < m_panes.size(); ++i) {
-        long f = m_panes[i].pane->getCentreFrame();
+    int initialCentreFrame = -1;
+    for (int i = 0; i < (int)m_panes.size(); ++i) {
+        int f = m_panes[i].pane->getCentreFrame();
         initialCentreFrame = f;
         break;
     }
@@ -158,8 +158,8 @@
             this, SLOT(paneDropAccepted(QStringList)));
     connect(pane, SIGNAL(dropAccepted(QString)),
             this, SLOT(paneDropAccepted(QString)));
-    connect(pane, SIGNAL(doubleClickSelectInvoked(size_t)),
-            this, SIGNAL(doubleClickSelectInvoked(size_t)));
+    connect(pane, SIGNAL(doubleClickSelectInvoked(int)),
+            this, SIGNAL(doubleClickSelectInvoked(int)));
 
     emit paneAdded(pane);
     emit paneAdded();
@@ -220,7 +220,7 @@
 Pane *
 PaneStack::getPane(int n)
 {
-    if (n < m_panes.size()) {
+    if (n < (int)m_panes.size()) {
         return m_panes[n].pane;
     } else {
         return 0;
@@ -532,7 +532,7 @@
 
     if (m_propertyStackMinWidth > 0) maxMinWidth = m_propertyStackMinWidth;
 
-    for (size_t i = 0; i < m_panes.size(); ++i) {
+    for (int i = 0; i < (int)m_panes.size(); ++i) {
 	if (!m_panes[i].propertyStack) continue;
 #ifdef DEBUG_PANE_STACK
 	SVDEBUG << "PaneStack::sizePropertyStacks: " << i << ": min " 
@@ -554,7 +554,7 @@
 
     m_propertyStackStack->setMaximumWidth(setWidth + 10);
 
-    for (size_t i = 0; i < m_panes.size(); ++i) {
+    for (int i = 0; i < (int)m_panes.size(); ++i) {
 	if (!m_panes[i].propertyStack) continue;
 	m_panes[i].propertyStack->setMinimumWidth(setWidth);
     }
@@ -581,7 +581,7 @@
 PaneStack::paneDeleteButtonClicked()
 {
     QObject *s = sender();
-    for (size_t i = 0; i < m_panes.size(); ++i) {
+    for (int i = 0; i < (int)m_panes.size(); ++i) {
 	if (m_panes[i].xButton == s) {
             emit paneDeleteButtonClicked(m_panes[i].pane);
         }
@@ -593,7 +593,7 @@
 {
     QObject *s = sender();
 
-    for (size_t i = 0; i < m_panes.size(); ++i) {
+    for (int i = 0; i < (int)m_panes.size(); ++i) {
 	if (m_panes[i].currentIndicator == s) {
             setCurrentPane(m_panes[i].pane);
             return;