Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
3 additions
and
3 deletions.
-
+2
−2
src/core/qgsproviderregistry.cpp
-
+1
−1
src/core/raster/qgsrasterlayer.cpp
|
@@ -362,7 +362,7 @@ QDir QgsProviderRegistry::libraryDirectory() const |
|
|
|
|
|
|
|
|
// typedef for the QgsDataProvider class factory |
|
|
typedef QgsDataProvider *classFactoryFunction_t( const QString * ); |
|
|
typedef QgsDataProvider *classFactoryFunction_t( const QString *, const QgsDataProvider::ProviderOptions &options ); |
|
|
|
|
|
|
|
|
/* Copied from QgsVectorLayer::setDataProvider |
|
@@ -426,7 +426,7 @@ QgsDataProvider *QgsProviderRegistry::createProvider( QString const &providerKey |
|
|
return nullptr; |
|
|
} |
|
|
|
|
|
QgsDataProvider *dataProvider = classFactory( &dataSource ); |
|
|
QgsDataProvider *dataProvider = classFactory( &dataSource, options ); |
|
|
if ( !dataProvider ) |
|
|
{ |
|
|
QgsMessageLog::logMessage( QObject::tr( "Unable to instantiate the data provider plugin %1" ).arg( lib ) ); |
|
|
|
@@ -212,7 +212,7 @@ void QgsRasterLayer::setDataProvider( const QString &provider ) |
|
|
} |
|
|
|
|
|
// typedef for the QgsDataProvider class factory |
|
|
typedef QgsDataProvider *classFactoryFunction_t( const QString * ); |
|
|
typedef QgsDataProvider *classFactoryFunction_t( const QString *, const QgsDataProvider::ProviderOptions &options ); |
|
|
|
|
|
////////////////////////////////////////////////////////// |
|
|
// |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.