From 3d3cd3e7b928efa2e441eec6588edac87f37930f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Mon, 21 Jul 2014 13:50:57 +0200 Subject: [PATCH] accomodate ptr to ref change --- .../Polyhedron_demo_point_set_shape_detection_plugin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Polyhedron/demo/Polyhedron/Polyhedron_demo_point_set_shape_detection_plugin.cpp b/Polyhedron/demo/Polyhedron/Polyhedron_demo_point_set_shape_detection_plugin.cpp index 780680013b0..bdb7bb6cfb5 100644 --- a/Polyhedron/demo/Polyhedron/Polyhedron_demo_point_set_shape_detection_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Polyhedron_demo_point_set_shape_detection_plugin.cpp @@ -136,8 +136,8 @@ void Polyhedron_demo_point_set_shape_detection_plugin::on_actionDetect_triggered int index = 0; while (it != shape_detection.shapes_end()) { Scene_points_with_normal_item *point_item = new Scene_points_with_normal_item; - auto it2 = (*it)->assigned_points()->begin(); - while (it2 != (*it)->assigned_points()->end()) { + auto it2 = (*it)->assigned_points().begin(); + while (it2 != (*it)->assigned_points().end()) { point_item->point_set()->push_back((*points)[*it2].position()); it2++; } @@ -154,7 +154,7 @@ void Polyhedron_demo_point_set_shape_detection_plugin::on_actionDetect_triggered else if (dynamic_cast *>(*it)) ss << "_plane_"; - ss << (*it)->assigned_points()->size(); + ss << (*it)->assigned_points().size(); //names[i] = ss.str( point_item->setName(QString::fromStdString(ss.str()));