From 3043e85ea10d00b4c88021912fd8273d5d50c41d Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Mon, 18 Sep 2017 18:31:46 +0200 Subject: [PATCH] Return error message from QgsVectorFileWriter --- python/core/qgsvectorfilewriter.sip | 6 +++--- src/core/qgsvectorfilewriter.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/python/core/qgsvectorfilewriter.sip b/python/core/qgsvectorfilewriter.sip index 1610b46a75d..0dea1612be0 100644 --- a/python/core/qgsvectorfilewriter.sip +++ b/python/core/qgsvectorfilewriter.sip @@ -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, @@ -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, @@ -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 diff --git a/src/core/qgsvectorfilewriter.h b/src/core/qgsvectorfilewriter.h index 7e29b6893ca..a4a6f34a75d 100644 --- a/src/core/qgsvectorfilewriter.h +++ b/src/core/qgsvectorfilewriter.h @@ -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, @@ -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, @@ -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,