Skip to content

Commit 3d5e67e

Browse files
elpasonyalldawson
authored andcommittedApr 17, 2019
Fix SIP (sipify does not like inline initializers)
1 parent dcf2062 commit 3d5e67e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed
 

‎python/core/auto_generated/qgsdataprovider.sip.in

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,12 @@ Abstract base class for spatial data provider implementations.
6161
QgsCoordinateTransformContext coordinateTransformContext;
6262
};
6363

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

6868
Additional creation options are specified within the ``options`` value.
6969
%End
70-
mDataSourceURI( uri ),
71-
mOptions( options );
7270

7371
virtual QgsCoordinateReferenceSystem crs() const = 0;
7472
%Docstring

‎src/core/qgsdataprovider.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717

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

20+
QgsDataProvider::QgsDataProvider( const QString &uri, const QgsDataProvider::ProviderOptions &options )
21+
: mDataSourceURI( uri ),
22+
mOptions( options )
23+
{
24+
}
25+
2026
void QgsDataProvider::setProviderProperty( QgsDataProvider::ProviderProperty property, const QVariant &value )
2127
{
2228
mProviderProperties.insert( property, value );

‎src/core/qgsdataprovider.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,7 @@ class CORE_EXPORT QgsDataProvider : public QObject
106106
*
107107
* Additional creation options are specified within the \a options value.
108108
*/
109-
QgsDataProvider( const QString &uri = QString(), const QgsDataProvider::ProviderOptions &options = QgsDataProvider::ProviderOptions() ):
110-
mDataSourceURI( uri ),
111-
mOptions( options )
112-
{
113-
}
109+
QgsDataProvider( const QString &uri = QString(), const QgsDataProvider::ProviderOptions &options = QgsDataProvider::ProviderOptions() );
114110

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

0 commit comments

Comments
 (0)
Please sign in to comment.