Skip to content

Commit

Permalink
Make QgsVectorLayer ctor default to ogr provider
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 27, 2017
1 parent 45fc6dc commit 6c7e2f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/core/qgsvectorlayer.sip
Expand Up @@ -357,7 +357,7 @@ class QgsVectorLayer : QgsMapLayer, QgsExpressionContextGenerator
*
*/
QgsVectorLayer( const QString& path = QString::null, const QString& baseName = QString::null,
const QString& providerLib = QString::null, bool loadDefaultStyleFlag = true );
const QString& providerLib = "ogr", bool loadDefaultStyleFlag = true );

/** Destructor */
virtual ~QgsVectorLayer();
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.h
Expand Up @@ -453,7 +453,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
*
*/
QgsVectorLayer( const QString& path = QString::null, const QString& baseName = QString::null,
const QString& providerLib = QString::null, bool loadDefaultStyleFlag = true );
const QString& providerLib = "ogr", bool loadDefaultStyleFlag = true );


virtual ~QgsVectorLayer();
Expand Down

0 comments on commit 6c7e2f1

Please sign in to comment.