Skip to content
Permalink
Browse files

Use std::make_shared()

(cherry picked from commit 38ed7e8)
  • Loading branch information
tomtor authored and nyalldawson committed Nov 20, 2020
1 parent 68a5a5c commit 658e81f30c16753e413842b348ffd9dcaaa2ca15
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresproviderconnection.cpp
@@ -209,7 +209,7 @@ QList<QVariantList> QgsPostgresProviderConnection::executeSqlPrivate( const QStr
}

if ( ! pgconn )
pgconn = std::shared_ptr<QgsPoolPostgresConn>( new QgsPoolPostgresConn( QgsDataSourceUri( uri() ).connectionInfo( false ) ) );
pgconn = std::make_shared<QgsPoolPostgresConn>( QgsDataSourceUri( uri() ).connectionInfo( false ) );
QgsPostgresConn *conn = pgconn->get();
if ( ! conn )
{

0 comments on commit 658e81f

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