mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 18:51:16 +00:00
Use const_iterator
This commit is contained in:
parent
460819b4c7
commit
b2b588bee8
@ -49,10 +49,10 @@ void ViewManager::RemoveAll(ViewROI* p_roi)
|
|||||||
}
|
}
|
||||||
|
|
||||||
p_roi->SetUnknown0xe0(-1);
|
p_roi->SetUnknown0xe0(-1);
|
||||||
CompoundObject* comp = const_cast<CompoundObject*>(p_roi->GetComp());
|
const CompoundObject* comp = p_roi->GetComp();
|
||||||
|
|
||||||
if (comp != NULL) {
|
if (comp != NULL) {
|
||||||
for (CompoundObject::iterator it = comp->begin(); !(it == comp->end()); it++) {
|
for (CompoundObject::const_iterator it = comp->begin(); !(it == comp->end()); it++) {
|
||||||
ViewROI* roi = (ViewROI*) *it;
|
ViewROI* roi = (ViewROI*) *it;
|
||||||
|
|
||||||
if (roi != NULL) {
|
if (roi != NULL) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user