Skip to content
Permalink
Browse files

[app] Use unique pointer for query builder

  • Loading branch information
elpaso committed Nov 21, 2017
1 parent 5be5c1e commit 17ca25fb695897bac5d8c37a03514ff76d46050b
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/app/qgisapp.cpp
@@ -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
@@ -8947,8 +8947,6 @@ void QgisApp::layerSubsetString()
}
}

// delete the query builder object
delete qb;
}

void QgisApp::saveLastMousePosition( const QgsPointXY &p )

0 comments on commit 17ca25f

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