File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -362,7 +362,7 @@ QDir QgsProviderRegistry::libraryDirectory() const
362362
363363
364364// typedef for the QgsDataProvider class factory
365- typedef QgsDataProvider *classFactoryFunction_t ( const QString * );
365+ typedef QgsDataProvider *classFactoryFunction_t ( const QString *, const QgsDataProvider::ProviderOptions &options );
366366
367367
368368/* Copied from QgsVectorLayer::setDataProvider
@@ -426,7 +426,7 @@ QgsDataProvider *QgsProviderRegistry::createProvider( QString const &providerKey
426426 return nullptr ;
427427 }
428428
429- QgsDataProvider *dataProvider = classFactory ( &dataSource );
429+ QgsDataProvider *dataProvider = classFactory ( &dataSource, options );
430430 if ( !dataProvider )
431431 {
432432 QgsMessageLog::logMessage ( QObject::tr ( " Unable to instantiate the data provider plugin %1" ).arg ( lib ) );
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ void QgsRasterLayer::setDataProvider( const QString &provider )
212212}
213213
214214// typedef for the QgsDataProvider class factory
215- typedef QgsDataProvider *classFactoryFunction_t ( const QString * );
215+ typedef QgsDataProvider *classFactoryFunction_t ( const QString *, const QgsDataProvider::ProviderOptions &options );
216216
217217// ////////////////////////////////////////////////////////
218218//
You can’t perform that action at this time.
0 commit comments