Skip to content
Permalink
Browse files

Use std::make_shared()

  • Loading branch information
tomtor committed Nov 17, 2020
1 parent 9c5f35c commit 38ed7e8b3634d5eef6708865c93225058e1677d8
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 38ed7e8

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