Skip to content
Permalink
Browse files
Fix mesh editor test (remove deprecated QList::toSet())
  • Loading branch information
nirvn authored and nyalldawson committed Jul 19, 2021
1 parent 1fdba5d commit f2502f7b08a95495a263b7fc558fb2ec611cacfe
Showing with 3 additions and 2 deletions.
  1. +3 −2 tests/src/core/testqgsmesheditor.cpp
@@ -17,6 +17,7 @@
#include "qgstest.h"
#include <QObject>

#include "qgis.h"
#include "qgstriangularmesh.h"
#include "qgsmeshlayer.h"
#include "qgsmesheditor.h"
@@ -1581,7 +1582,7 @@ void TestQgsMeshEditor::refineMesh()
QHash<int, QgsMeshEditRefineFaces::FaceRefinement > facesRefinement;
QHash<int, QgsMeshEditRefineFaces::BorderFace> borderFaces;
QSet<int> facesToRefine;
facesToRefine = facesList.toSet();
facesToRefine = qgis::listToSet( facesList );

refineEditing.createNewVerticesAndRefinedFaces( &meshEditor, facesToRefine, facesRefinement );
refineEditing.createNewBorderFaces( &meshEditor, facesToRefine, facesRefinement, borderFaces );
@@ -1649,7 +1650,7 @@ void TestQgsMeshEditor::refineMesh()
QHash<int, QgsMeshEditRefineFaces::FaceRefinement> facesRefinement;
QHash<int, QgsMeshEditRefineFaces::BorderFace> borderFaces;

facesToRefine = facesList.toSet();
facesToRefine = qgis::listToSet( facesList );

refineEditing.createNewVerticesAndRefinedFaces( &meshEditor, facesToRefine, facesRefinement );
refineEditing.createNewBorderFaces( &meshEditor, facesToRefine, facesRefinement, borderFaces );

0 comments on commit f2502f7

Please sign in to comment.