Skip to content

Commit

Permalink
[app] Use unique pointer for query builder
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Nov 21, 2017
1 parent 5be5c1e commit 17ca25f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/qgisapp.cpp
Expand Up @@ -8928,7 +8928,7 @@ void QgisApp::layerSubsetString()
}

// launch the query builder
QgsQueryBuilder *qb = new QgsQueryBuilder( vlayer, this );
std::unique_ptr<QgsQueryBuilder> qb( new QgsQueryBuilder( vlayer, this ) );
QString subsetBefore = vlayer->subsetString();

// Set the sql in the query builder to the same in the prop dialog
Expand All @@ -8947,8 +8947,6 @@ void QgisApp::layerSubsetString()
}
}

// delete the query builder object
delete qb;
}

void QgisApp::saveLastMousePosition( const QgsPointXY &p )
Expand Down

0 comments on commit 17ca25f

Please sign in to comment.