Skip to content

Commit

Permalink
Return error message from QgsVectorFileWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 18, 2017
1 parent 15bc5ed commit 3043e85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions python/core/qgsvectorfilewriter.sip
Expand Up @@ -226,7 +226,7 @@ Constructor
const QgsCoordinateReferenceSystem &destCRS = QgsCoordinateReferenceSystem(),
const QString &driverName = "ESRI Shapefile",
bool onlySelected = false,
QString *errorMessage = 0,
QString *errorMessage /Out/ = 0,
const QStringList &datasourceOptions = QStringList(),
const QStringList &layerOptions = QStringList(),
bool skipAttributeCreation = false,
Expand Down Expand Up @@ -271,7 +271,7 @@ Constructor
const QgsCoordinateTransform &ct,
const QString &driverName = "ESRI Shapefile",
bool onlySelected = false,
QString *errorMessage = 0,
QString *errorMessage /Out/ = 0,
const QStringList &datasourceOptions = QStringList(),
const QStringList &layerOptions = QStringList(),
bool skipAttributeCreation = false,
Expand Down Expand Up @@ -431,7 +431,7 @@ Optional feedback object allowing cancelation of layer save
const QString &fileName,
const QgsVectorFileWriter::SaveVectorOptions &options,
QString *newFilename = 0,
QString *errorMessage = 0 );
QString *errorMessage /Out/ = 0 );
%Docstring
Writes a layer out to a vector file.
\param layer source layer to write
Expand Down
6 changes: 3 additions & 3 deletions src/core/qgsvectorfilewriter.h
Expand Up @@ -276,7 +276,7 @@ class CORE_EXPORT QgsVectorFileWriter : public QgsFeatureSink
const QgsCoordinateReferenceSystem &destCRS = QgsCoordinateReferenceSystem(),
const QString &driverName = "ESRI Shapefile",
bool onlySelected = false,
QString *errorMessage = nullptr,
QString *errorMessage SIP_OUT = nullptr,
const QStringList &datasourceOptions = QStringList(),
const QStringList &layerOptions = QStringList(),
bool skipAttributeCreation = false,
Expand Down Expand Up @@ -321,7 +321,7 @@ class CORE_EXPORT QgsVectorFileWriter : public QgsFeatureSink
const QgsCoordinateTransform &ct,
const QString &driverName = "ESRI Shapefile",
bool onlySelected = false,
QString *errorMessage = nullptr,
QString *errorMessage SIP_OUT = nullptr,
const QStringList &datasourceOptions = QStringList(),
const QStringList &layerOptions = QStringList(),
bool skipAttributeCreation = false,
Expand Down Expand Up @@ -423,7 +423,7 @@ class CORE_EXPORT QgsVectorFileWriter : public QgsFeatureSink
const QString &fileName,
const QgsVectorFileWriter::SaveVectorOptions &options,
QString *newFilename = nullptr,
QString *errorMessage = nullptr );
QString *errorMessage SIP_OUT = nullptr );

//! Create a new vector file writer
QgsVectorFileWriter( const QString &vectorFileName,
Expand Down

0 comments on commit 3043e85

Please sign in to comment.