Commit cd565554 authored by Jan Möbius's avatar Jan Möbius

Use ranges for Object Iteration to simplify code

parent ec82e26a
......@@ -626,7 +626,7 @@ void DataControlPlugin::printObjectInfoToLog() {
*/
unsigned int DataControlPlugin::groupCount() const {
unsigned int count = 0;
for (auto* o_it : PluginFunctions::objects(PluginFunctions::ALL_OBJECTS, DATA_GROUP) )
for ( PluginFunctions::BaseObjectIterator o_it(PluginFunctions::ALL_OBJECTS,DATA_GROUP); o_it != PluginFunctions::objectsEnd(); ++o_it)
++count;
return count;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment