Skip to content

Commit

Permalink
fix ugly code
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec authored and nyalldawson committed Sep 28, 2021
1 parent 41f0918 commit babd7df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/core/mesh/qgsmeshforcebypolylines.cpp
Expand Up @@ -619,8 +619,6 @@ bool QgsMeshEditForceByLine::buildForcedElements()
mIsFinished = true;
return false;
}

leftFace = currentFaceIndex;
}
else
currentEdge = {mHoleOnLeft.last(), mHoleOnRight.last()};
Expand Down
4 changes: 2 additions & 2 deletions src/core/mesh/qgstopologicalmesh.cpp
Expand Up @@ -357,7 +357,7 @@ void QgsTopologicalMesh::applyChanges( const QgsTopologicalMesh::Changes &change
mVertexToFace.resize( newSize );
}

if ( !changes.mFacesToAdd.empty() > 0 )
if ( !changes.mFacesToAdd.empty() )
{
int newSize = mMesh->faceCount() + changes.mFacesToAdd.count();
mMesh->faces.resize( newSize );
Expand Down Expand Up @@ -470,7 +470,7 @@ void QgsTopologicalMesh::reverseChanges( const QgsTopologicalMesh::Changes &chan
referenceAsFreeVertex( vertexIndex );
}

if ( !changes.mFacesToAdd.empty() > 0 )
if ( !changes.mFacesToAdd.empty() )
{
int newSize = mMesh->faceCount() - changes.mFacesToAdd.count();
mMesh->faces.resize( newSize );
Expand Down

0 comments on commit babd7df

Please sign in to comment.