Mercurial > hg > svgui
comparison widgets/PropertyStack.cpp @ 908:4a578a360011 cxx11
More type fixes
author | Chris Cannam |
---|---|
date | Tue, 10 Mar 2015 13:22:10 +0000 |
parents | 7792b7667f74 |
children | 8744bb5d9fd0 |
comparison
equal
deleted
inserted
replaced
907:28d05ae8741c | 908:4a578a360011 |
---|---|
170 // container (i.e. the layer) in the view: the view reorders its | 170 // container (i.e. the layer) in the view: the view reorders its |
171 // containers whenever one is raised to the top, while our boxes | 171 // containers whenever one is raised to the top, while our boxes |
172 // remain in the same order. So we must find this container in the | 172 // remain in the same order. So we must find this container in the |
173 // box list, not in the view. | 173 // box list, not in the view. |
174 | 174 |
175 for (size_t i = 0; i < m_boxes.size(); ++i) { | 175 for (int i = 0; in_range_for(m_boxes, i); ++i) { |
176 PropertyContainer *container = m_boxes[i]->getContainer(); | 176 PropertyContainer *container = m_boxes[i]->getContainer(); |
177 if (pc == container) { | 177 if (pc == container) { |
178 return i; | 178 return i; |
179 } | 179 } |
180 } | 180 } |