From ecbd229369b296c92f333a3b98512bdaf4d714c7 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Thu, 9 Aug 2012 12:45:11 +0000 Subject: [PATCH] WARNFIX: bad use of size_t whereas int was the right type --- Polyhedron/demo/Polyhedron/Polyhedron_demo_cut_plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Polyhedron/demo/Polyhedron/Polyhedron_demo_cut_plugin.cpp b/Polyhedron/demo/Polyhedron/Polyhedron_demo_cut_plugin.cpp index a343556bde7..0a163e30ed7 100644 --- a/Polyhedron/demo/Polyhedron/Polyhedron_demo_cut_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Polyhedron_demo_cut_plugin.cpp @@ -233,7 +233,7 @@ void Polyhedron_demo_cut_plugin::createCutPlane() { // Hide polyhedrons and call cut() (avoid that nothing shows up until user // decides to move the plane item) - for(size_t i = 0, end = scene->numberOfEntries(); i < end; ++i) { + for(int i = 0, end = scene->numberOfEntries(); i < end; ++i) { Scene_item* item = scene->item(i); Scene_polyhedron_item* poly_item = qobject_cast(item); if ( NULL != poly_item ) @@ -261,7 +261,7 @@ void Polyhedron_demo_cut_plugin::cut() { edges_item->edges.clear(); QTime time; time.start(); - for(size_t i = 0, end = scene->numberOfEntries(); i < end; ++i) { + for(int i = 0, end = scene->numberOfEntries(); i < end; ++i) { Scene_item* item = scene->item(i); Scene_polyhedron_item* poly_item = qobject_cast(item); if(!poly_item) continue;