Skip to content
Permalink
Browse files

Fix SIP (sipify does not like inline initializers)

  • Loading branch information
elpaso authored and nyalldawson committed Mar 21, 2019
1 parent dcf2062 commit 3d5e67e72c87fdafac4c20e225b404ffde39ebf9
@@ -61,14 +61,12 @@ Abstract base class for spatial data provider implementations.
QgsCoordinateTransformContext coordinateTransformContext;
};

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

Additional creation options are specified within the ``options`` value.
%End
mDataSourceURI( uri ),
mOptions( options );

virtual QgsCoordinateReferenceSystem crs() const = 0;
%Docstring
@@ -17,6 +17,12 @@

QString QgsDataProvider::SUBLAYER_SEPARATOR = QString( "!!::!!" );

QgsDataProvider::QgsDataProvider( const QString &uri, const QgsDataProvider::ProviderOptions &options )
: mDataSourceURI( uri ),
mOptions( options )
{
}

void QgsDataProvider::setProviderProperty( QgsDataProvider::ProviderProperty property, const QVariant &value )
{
mProviderProperties.insert( property, value );
@@ -106,11 +106,7 @@ class CORE_EXPORT QgsDataProvider : public QObject
*
* Additional creation options are specified within the \a options value.
*/
QgsDataProvider( const QString &uri = QString(), const QgsDataProvider::ProviderOptions &options = QgsDataProvider::ProviderOptions() ):
mDataSourceURI( uri ),
mOptions( options )
{
}
QgsDataProvider( const QString &uri = QString(), const QgsDataProvider::ProviderOptions &options = QgsDataProvider::ProviderOptions() );

/**
* Returns the coordinate system for the data source.

0 comments on commit 3d5e67e

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