Skip to content
Permalink
Browse files

Fix build

  • Loading branch information
nyalldawson committed May 21, 2018
1 parent b813a67 commit 7c6eaf3d46b84dee7d617d3c68a581fccfe24fb9
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/core/qgsproviderregistry.cpp
  2. +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 );

//////////////////////////////////////////////////////////
//

0 comments on commit 7c6eaf3

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