Mercurial > hg > svgui
comparison widgets/PropertyStack.cpp @ 807:e4773943c9c1 warnfix_no_size_t
More unsigned/long and warning fixes
author | Chris Cannam |
---|---|
date | Tue, 17 Jun 2014 15:55:27 +0100 |
parents | b6dc57688c72 |
children | 7792b7667f74 |
comparison
equal
deleted
inserted
replaced
806:4c8ca536b54f | 807:e4773943c9c1 |
---|---|
94 for (size_t i = 0; i < m_boxes.size(); ++i) { | 94 for (size_t i = 0; i < m_boxes.size(); ++i) { |
95 delete m_boxes[i]; | 95 delete m_boxes[i]; |
96 } | 96 } |
97 m_boxes.clear(); | 97 m_boxes.clear(); |
98 | 98 |
99 for (size_t i = 0; i < m_client->getPropertyContainerCount(); ++i) { | 99 for (int i = 0; i < m_client->getPropertyContainerCount(); ++i) { |
100 | 100 |
101 PropertyContainer *container = m_client->getPropertyContainer(i); | 101 PropertyContainer *container = m_client->getPropertyContainer(i); |
102 QString name = container->getPropertyContainerName(); | 102 QString name = container->getPropertyContainerName(); |
103 | 103 |
104 PropertyBox *box = new PropertyBox(container); | 104 PropertyBox *box = new PropertyBox(container); |
145 } | 145 } |
146 | 146 |
147 bool | 147 bool |
148 PropertyStack::containsContainer(PropertyContainer *pc) const | 148 PropertyStack::containsContainer(PropertyContainer *pc) const |
149 { | 149 { |
150 for (size_t i = 0; i < m_client->getPropertyContainerCount(); ++i) { | 150 for (int i = 0; i < m_client->getPropertyContainerCount(); ++i) { |
151 PropertyContainer *container = m_client->getPropertyContainer(i); | 151 PropertyContainer *container = m_client->getPropertyContainer(i); |
152 if (pc == container) return true; | 152 if (pc == container) return true; |
153 } | 153 } |
154 | 154 |
155 return false; | 155 return false; |