Skip to content

Commit

Permalink
Fix API breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 25, 2018
1 parent 44630b4 commit b813a67
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion python/core/auto_generated/qgsdataprovider.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -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``.

Expand Down
2 changes: 1 addition & 1 deletion python/core/auto_generated/qgsproviderregistry.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion python/core/auto_generated/qgsvectordataprovider.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsdataprovider.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsproviderregistry.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvectordataprovider.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/core/raster/qgsrasterdataprovider.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b813a67

Please sign in to comment.