diff -r 6790dea720a8 -r e6b8dab8f81a bbox.cpp --- a/bbox.cpp Mon Mar 25 16:05:03 2013 +0200 +++ b/bbox.cpp Mon Mar 25 17:04:18 2013 +0200 @@ -34,10 +34,8 @@ if (!g_CurrentFile) return; - for (uint i = 0; i < g_CurrentFile->objects.size(); i++) { - LDObject* obj = g_CurrentFile->objects[i]; + for (LDObject* obj : g_CurrentFile->objects) { switch (obj->getType ()) { - case OBJ_Line: { LDLine* line = static_cast (obj);