Skip to content
Permalink
Browse files

processing: remove useless nullptr checks

  • Loading branch information
rouault committed Jun 1, 2020
1 parent cc1488f commit 81fe76447c8b1061713c5ee192a383687d66c145
@@ -113,7 +113,7 @@ QVariantMap QgsRandomPointsExtentAlgorithm::processAlgorithm( const QVariantMap
int i = 0;
while ( i < mNumPoints )
{
if ( feedback && feedback->isCanceled() )
if ( feedback->isCanceled() )
break;

double rx = x_distribution( random_device );
@@ -136,7 +136,7 @@ QVariantMap QgsRandomPointsExtentAlgorithm::processAlgorithm( const QVariantMap
int i = 0;
while ( i < mNumPoints )
{
if ( feedback && feedback->isCanceled() )
if ( feedback->isCanceled() )
break;

double rx = x_distribution( random_device );
@@ -116,7 +116,7 @@ QVariantMap QgsZonalHistogramAlgorithm::processAlgorithm( const QVariantMap &par
QgsFeature f;
while ( it.nextFeature( f ) )
{
if ( feedback && feedback->isCanceled() )
if ( feedback->isCanceled() )
{
break;
}

0 comments on commit 81fe764

Please sign in to comment.
You can’t perform that action at this time.