Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 25, 2018
1 parent b813a67 commit 7c6eaf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsproviderregistry.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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 ) );
Expand Down
2 changes: 1 addition & 1 deletion src/core/raster/qgsrasterlayer.cpp
Expand Up @@ -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 );

//////////////////////////////////////////////////////////
//
Expand Down

0 comments on commit 7c6eaf3

Please sign in to comment.