src/ldObject.cpp

changeset 1031
55c0d3beea0d
parent 1028
5877e49e9a28
child 1045
f726f8f49c7e
--- a/src/ldObject.cpp	Wed Feb 17 03:24:07 2016 +0200
+++ b/src/ldObject.cpp	Wed Feb 17 19:54:21 2016 +0200
@@ -1166,13 +1166,13 @@
 	}
 };
 
-void LDObject::getVertices (QVector<Vertex>& verts) const
+void LDObject::getVertices (QSet<Vertex>& verts) const
 {
 	for (int i = 0; i < numVertices(); ++i)
-		verts << vertex (i);
+		verts.insert(vertex(i));
 }
 
-void LDSubfileReference::getVertices (QVector<Vertex>& verts) const
+void LDSubfileReference::getVertices (QSet<Vertex>& verts) const
 {
-	verts << fileInfo()->inlineVertices();
+	verts.unite(fileInfo()->inlineVertices());
 }
\ No newline at end of file

mercurial