Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Commit 6a0ee49

Browse files
committed
Replace range-based for with iterators
Replace range-based for with classical loop over iterator for C++03 compatibility.
1 parent b306962 commit 6a0ee49

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cppapi/server/dserver.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,9 +1102,11 @@ void DServer::restart(string &d_name)
11021102
// Attribute properties may have changed after the restart.
11031103
// Push an attribute configuration event to all registered subscribers.
11041104

1105-
for (Attribute* attr : new_dev->get_device_attr()->get_attribute_list())
1105+
vector<Tango::Attribute*>& dev_att_list = new_dev->get_device_attr()->get_attribute_list();
1106+
vector<Tango::Attribute*>::iterator ite_att;
1107+
for (ite_att = dev_att_list.begin(); ite_att != dev_att_list.end() ; ++ite_att)
11061108
{
1107-
new_dev->push_att_conf_event(attr);
1109+
new_dev->push_att_conf_event(*ite_att);
11081110
}
11091111
}
11101112

0 commit comments

Comments
 (0)