Skip to content
Permalink
Browse files

Fix API breaks

  • Loading branch information
nyalldawson committed May 21, 2018
1 parent 44630b4 commit b813a6715e76209a77bc8c34b4cb60d805440547
@@ -70,7 +70,7 @@ to generic QgsVectorDataProvider's) depends on it.

};

QgsDataProvider( const QString &uri, const QgsDataProvider::ProviderOptions &options );
QgsDataProvider( const QString &uri = QString(), const QgsDataProvider::ProviderOptions &options = QgsDataProvider::ProviderOptions() );
%Docstring
Create a new dataprovider with the specified in the ``uri``.

@@ -74,7 +74,7 @@ Set library directory where to search for plugins

QgsDataProvider *createProvider( const QString &providerKey,
const QString &dataSource,
const QgsDataProvider::ProviderOptions &options ) /Factory/;
const QgsDataProvider::ProviderOptions &options = QgsDataProvider::ProviderOptions() ) /Factory/;
%Docstring
Creates a new instance of a provider.

@@ -67,7 +67,7 @@ of feature and attribute information from a spatial datasource.
UnknownCount,
};

QgsVectorDataProvider( const QString &uri, const QgsDataProvider::ProviderOptions &options );
QgsVectorDataProvider( const QString &uri = QString(), const QgsDataProvider::ProviderOptions &options = QgsDataProvider::ProviderOptions() );
%Docstring
Constructor for a vector data provider.

@@ -82,7 +82,7 @@ Base class for raster data providers.

QgsRasterDataProvider();

QgsRasterDataProvider( const QString &uri, const QgsDataProvider::ProviderOptions &options );
QgsRasterDataProvider( const QString &uri, const QgsDataProvider::ProviderOptions &options = QgsDataProvider::ProviderOptions() );
%Docstring
Constructor for QgsRasterDataProvider.

@@ -111,7 +111,7 @@ class CORE_EXPORT QgsDataProvider : public QObject
*
* Additional creation options are specified within the \a options value.
*/
QgsDataProvider( const QString &uri, const QgsDataProvider::ProviderOptions &options )
QgsDataProvider( const QString &uri = QString(), const QgsDataProvider::ProviderOptions &options = QgsDataProvider::ProviderOptions() )
: mDataSourceURI( uri )
{
Q_UNUSED( options );
@@ -98,7 +98,7 @@ class CORE_EXPORT QgsProviderRegistry
*/
QgsDataProvider *createProvider( const QString &providerKey,
const QString &dataSource,
const QgsDataProvider::ProviderOptions &options ) SIP_FACTORY;
const QgsDataProvider::ProviderOptions &options = QgsDataProvider::ProviderOptions() ) SIP_FACTORY;

/**
* Return the provider capabilities
@@ -120,7 +120,7 @@ class CORE_EXPORT QgsVectorDataProvider : public QgsDataProvider, public QgsFeat
*
* Additional creation options are specified within the \a options value.
*/
QgsVectorDataProvider( const QString &uri, const QgsDataProvider::ProviderOptions &options );
QgsVectorDataProvider( const QString &uri = QString(), const QgsDataProvider::ProviderOptions &options = QgsDataProvider::ProviderOptions() );

/**
* Return feature source object that can be used for querying provider's data. The returned feature source
@@ -112,7 +112,7 @@ class CORE_EXPORT QgsRasterDataProvider : public QgsDataProvider, public QgsRast
*
* The \a options argument specifies generic provider options.
*/
QgsRasterDataProvider( const QString &uri, const QgsDataProvider::ProviderOptions &options );
QgsRasterDataProvider( const QString &uri, const QgsDataProvider::ProviderOptions &options = QgsDataProvider::ProviderOptions() );

QgsRasterInterface *clone() const override = 0;

0 comments on commit b813a67

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