Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix Qt 5.15 warning for flags initalization with nullptr
  • Loading branch information
3nids authored and nyalldawson committed Jun 18, 2020
1 parent 5b5f1f5 commit 43b122e
Show file tree
Hide file tree
Showing 59 changed files with 99 additions and 99 deletions.
Expand Up @@ -69,7 +69,7 @@ class ANALYSIS_EXPORT QgsGeometryCheckRegistry
*
* \since QGIS 3.4
*/
QList<QgsGeometryCheckFactory *> geometryCheckFactories( QgsVectorLayer *layer, QgsGeometryCheck::CheckType type, QgsGeometryCheck::Flags flags = nullptr ) const;
QList<QgsGeometryCheckFactory *> geometryCheckFactories( QgsVectorLayer *layer, QgsGeometryCheck::CheckType type, QgsGeometryCheck::Flags flags = QgsGeometryCheck::Flags() ) const;

/**
* Registers a new geometry check factory.
Expand Down
Expand Up @@ -37,8 +37,8 @@ class ANALYSIS_EXPORT QgsVectorDataProviderFeaturePool : public QgsFeaturePool
*/
QgsVectorDataProviderFeaturePool( QgsVectorLayer *layer, bool selectedOnly = false );

bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = nullptr ) override;
bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = nullptr ) override;
bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() ) override;
bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() ) override;
void updateFeature( QgsFeature &feature ) override;
void deleteFeature( QgsFeatureId fid ) override;

Expand Down
Expand Up @@ -38,8 +38,8 @@ class ANALYSIS_EXPORT QgsVectorLayerFeaturePool : public QObject, public QgsFeat
*/
QgsVectorLayerFeaturePool( QgsVectorLayer *layer );

bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = nullptr ) override;
bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = nullptr ) override;
bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() ) override;
bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() ) override;
void updateFeature( QgsFeature &feature ) override;
void deleteFeature( QgsFeatureId fid ) override;

Expand Down
2 changes: 1 addition & 1 deletion src/app/georeferencer/qgsgeorefmainwindow.h
Expand Up @@ -46,7 +46,7 @@ class QgsGeorefDockWidget : public QgsDockWidget
{
Q_OBJECT
public:
QgsGeorefDockWidget( const QString &title, QWidget *parent = nullptr, Qt::WindowFlags flags = nullptr );
QgsGeorefDockWidget( const QString &title, QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags() );
};

class QgsGeoreferencerMainWindow : public QMainWindow, private Ui::QgsGeorefPluginGuiBase
Expand Down
2 changes: 1 addition & 1 deletion src/app/layout/qgslayoutdesignerdialog.h
Expand Up @@ -102,7 +102,7 @@ class QgsLayoutDesignerDialog: public QMainWindow, public Ui::QgsLayoutDesignerB

public:

QgsLayoutDesignerDialog( QWidget *parent = nullptr, Qt::WindowFlags flags = nullptr );
QgsLayoutDesignerDialog( QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags() );

/**
* Returns the designer interface for the dialog.
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -7195,7 +7195,7 @@ void QgisApp::dxfExport()
dxfExport.setDestinationCrs( d.crs() );
dxfExport.setForce2d( d.force2d() );

QgsDxfExport::Flags flags = nullptr;
QgsDxfExport::Flags flags = QgsDxfExport::Flags();
if ( !d.useMText() )
flags = flags | QgsDxfExport::FlagNoMText;
dxfExport.setFlags( flags );
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsattributetabledialog.h
Expand Up @@ -235,7 +235,7 @@ class QgsAttributeTableDock : public QgsDockWidget
Q_OBJECT

public:
QgsAttributeTableDock( const QString &title, QWidget *parent = nullptr, Qt::WindowFlags flags = nullptr );
QgsAttributeTableDock( const QString &title, QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags() );

void closeEvent( QCloseEvent *ev ) override;
};
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsgeometryvalidationdock.h
Expand Up @@ -35,7 +35,7 @@ class QgsGeometryValidationDock : public QgsDockWidget, public Ui_QgsGeometryVal
Q_OBJECT

public:
QgsGeometryValidationDock( const QString &title, QgsMapCanvas *mapCanvas, QgisApp *parent = nullptr, Qt::WindowFlags flags = nullptr );
QgsGeometryValidationDock( const QString &title, QgsMapCanvas *mapCanvas, QgisApp *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags() );

QgsGeometryValidationModel *geometryValidationModel() const;
void setGeometryValidationModel( QgsGeometryValidationModel *geometryValidationModel );
Expand Down
2 changes: 1 addition & 1 deletion src/core/expression/qgsexpressionfunction.cpp
Expand Up @@ -2064,7 +2064,7 @@ static QVariant floatToDegreeFormat( const QgsCoordinateFormatter::Format format
if ( values.count() > 3 )
formatString = QgsExpressionUtils::getStringValue( values.at( 3 ), parent );

QgsCoordinateFormatter::FormatFlags flags = nullptr;
QgsCoordinateFormatter::FormatFlags flags = QgsCoordinateFormatter::FormatFlags();
if ( formatString.compare( QLatin1String( "suffix" ), Qt::CaseInsensitive ) == 0 )
{
flags = QgsCoordinateFormatter::FlagDegreesUseStringSuffix;
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgscircularstring.h
Expand Up @@ -75,7 +75,7 @@ class CORE_EXPORT QgsCircularString: public QgsCurve
bool fromWkb( QgsConstWkbPtr &wkb ) override;
bool fromWkt( const QString &wkt ) override;

QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = nullptr ) const override;
QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = QgsAbstractGeometry::WkbFlags() ) const override;
QString asWkt( int precision = 17 ) const override;
QDomElement asGml2( QDomDocument &doc, int precision = 17, const QString &ns = "gml", QgsAbstractGeometry::AxisOrder axisOrder = QgsAbstractGeometry::AxisOrder::XY ) const override;
QDomElement asGml3( QDomDocument &doc, int precision = 17, const QString &ns = "gml", QgsAbstractGeometry::AxisOrder axisOrder = QgsAbstractGeometry::AxisOrder::XY ) const override;
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgscompoundcurve.h
Expand Up @@ -46,7 +46,7 @@ class CORE_EXPORT QgsCompoundCurve: public QgsCurve
bool fromWkb( QgsConstWkbPtr &wkb ) override;
bool fromWkt( const QString &wkt ) override;

QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = nullptr ) const override;
QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = QgsAbstractGeometry::WkbFlags() ) const override;
QString asWkt( int precision = 17 ) const override;
QDomElement asGml2( QDomDocument &doc, int precision = 17, const QString &ns = "gml", QgsAbstractGeometry::AxisOrder axisOrder = QgsAbstractGeometry::AxisOrder::XY ) const override;
QDomElement asGml3( QDomDocument &doc, int precision = 17, const QString &ns = "gml", QgsAbstractGeometry::AxisOrder axisOrder = QgsAbstractGeometry::AxisOrder::XY ) const override;
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgscurvepolygon.h
Expand Up @@ -51,7 +51,7 @@ class CORE_EXPORT QgsCurvePolygon: public QgsSurface
bool fromWkb( QgsConstWkbPtr &wkb ) override;
bool fromWkt( const QString &wkt ) override;

QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = nullptr ) const override;
QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = QgsAbstractGeometry::WkbFlags() ) const override;
QString asWkt( int precision = 17 ) const override;
QDomElement asGml2( QDomDocument &doc, int precision = 17, const QString &ns = "gml", QgsAbstractGeometry::AxisOrder axisOrder = QgsAbstractGeometry::AxisOrder::XY ) const override;
QDomElement asGml3( QDomDocument &doc, int precision = 17, const QString &ns = "gml", QgsAbstractGeometry::AxisOrder axisOrder = QgsAbstractGeometry::AxisOrder::XY ) const override;
Expand Down
6 changes: 3 additions & 3 deletions src/core/geometry/qgsgeometry.h
Expand Up @@ -376,7 +376,7 @@ class CORE_EXPORT QgsGeometry
*
* \since QGIS 1.5
*/
bool isGeosValid( QgsGeometry::ValidityFlags flags = nullptr ) const;
bool isGeosValid( QgsGeometry::ValidityFlags flags = QgsGeometry::ValidityFlags() ) const;

/**
* Determines whether the geometry is simple (according to OGC definition),
Expand Down Expand Up @@ -1561,7 +1561,7 @@ class CORE_EXPORT QgsGeometry
*
* \since QGIS 3.0
*/
QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = nullptr ) const;
QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = QgsAbstractGeometry::WkbFlags() ) const;

/**
* Exports the geometry to WKT
Expand Down Expand Up @@ -2079,7 +2079,7 @@ class CORE_EXPORT QgsGeometry
*
* \since QGIS 1.5
*/
void validateGeometry( QVector<QgsGeometry::Error> &errors SIP_OUT, ValidationMethod method = ValidatorQgisInternal, QgsGeometry::ValidityFlags flags = nullptr ) const;
void validateGeometry( QVector<QgsGeometry::Error> &errors SIP_OUT, ValidationMethod method = ValidatorQgisInternal, QgsGeometry::ValidityFlags flags = QgsGeometry::ValidityFlags() ) const;

/**
* Compute the unary union on a list of \a geometries. May be faster than an iterative union on a set of geometries.
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeometrycollection.h
Expand Up @@ -179,7 +179,7 @@ class CORE_EXPORT QgsGeometryCollection: public QgsAbstractGeometry

bool fromWkb( QgsConstWkbPtr &wkb ) override;
bool fromWkt( const QString &wkt ) override;
QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = nullptr ) const override;
QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = QgsAbstractGeometry::WkbFlags() ) const override;
QString asWkt( int precision = 17 ) const override;
QDomElement asGml2( QDomDocument &doc, int precision = 17, const QString &ns = "gml", QgsAbstractGeometry::AxisOrder axisOrder = QgsAbstractGeometry::AxisOrder::XY ) const override;
QDomElement asGml3( QDomDocument &doc, int precision = 17, const QString &ns = "gml", QgsAbstractGeometry::AxisOrder axisOrder = QgsAbstractGeometry::AxisOrder::XY ) const override;
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgslinestring.h
Expand Up @@ -588,7 +588,7 @@ class CORE_EXPORT QgsLineString: public QgsCurve
bool fromWkb( QgsConstWkbPtr &wkb ) override;
bool fromWkt( const QString &wkt ) override;

QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = nullptr ) const override;
QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = QgsAbstractGeometry::WkbFlags() ) const override;
QString asWkt( int precision = 17 ) const override;
QDomElement asGml2( QDomDocument &doc, int precision = 17, const QString &ns = "gml", QgsAbstractGeometry::AxisOrder axisOrder = QgsAbstractGeometry::AxisOrder::XY ) const override;
QDomElement asGml3( QDomDocument &doc, int precision = 17, const QString &ns = "gml", QgsAbstractGeometry::AxisOrder axisOrder = QgsAbstractGeometry::AxisOrder::XY ) const override;
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgspolygon.h
Expand Up @@ -48,7 +48,7 @@ class CORE_EXPORT QgsPolygon: public QgsCurvePolygon
QgsPolygon *clone() const override SIP_FACTORY;
void clear() override;
bool fromWkb( QgsConstWkbPtr &wkb ) override;
QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = nullptr ) const override;
QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = QgsAbstractGeometry::WkbFlags() ) const override;
QgsPolygon *surfaceToPolygon() const override SIP_FACTORY;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/core/labeling/qgslabelingengine.cpp
Expand Up @@ -754,7 +754,7 @@ QString QgsLabelingUtils::encodeLinePlacementFlags( QgsLabeling::LinePlacementFl

QgsLabeling::LinePlacementFlags QgsLabelingUtils::decodeLinePlacementFlags( const QString &string )
{
QgsLabeling::LinePlacementFlags flags = nullptr;
QgsLabeling::LinePlacementFlags flags = QgsLabeling::LinePlacementFlags();
const QStringList flagList = string.split( ',' );
bool foundLineOrientationFlag = false;
for ( const QString &flag : flagList )
Expand Down
8 changes: 4 additions & 4 deletions src/core/layout/qgslayoutexporter.h
Expand Up @@ -208,7 +208,7 @@ class CORE_EXPORT QgsLayoutExporter
/**
* Layout context flags, which control how the export will be created.
*/
QgsLayoutRenderContext::Flags flags = nullptr;
QgsLayoutRenderContext::Flags flags = QgsLayoutRenderContext::Flags();

/**
* A list of predefined scales to use with the layout. This is used
Expand Down Expand Up @@ -292,7 +292,7 @@ class CORE_EXPORT QgsLayoutExporter
/**
* Layout context flags, which control how the export will be created.
*/
QgsLayoutRenderContext::Flags flags = nullptr;
QgsLayoutRenderContext::Flags flags = QgsLayoutRenderContext::Flags();

/**
* Text rendering format, which controls how text should be rendered in the export (e.g.
Expand Down Expand Up @@ -446,7 +446,7 @@ class CORE_EXPORT QgsLayoutExporter
/**
* Layout context flags, which control how the export will be created.
*/
QgsLayoutRenderContext::Flags flags = nullptr;
QgsLayoutRenderContext::Flags flags = QgsLayoutRenderContext::Flags();

/**
* A list of predefined scales to use with the layout. This is used
Expand Down Expand Up @@ -537,7 +537,7 @@ class CORE_EXPORT QgsLayoutExporter
/**
* Layout context flags, which control how the export will be created.
*/
QgsLayoutRenderContext::Flags flags = nullptr;
QgsLayoutRenderContext::Flags flags = QgsLayoutRenderContext::Flags();

/**
* Text rendering format, which controls how text should be rendered in the export (e.g.
Expand Down
2 changes: 1 addition & 1 deletion src/core/layout/qgslayoutitemmapgrid.cpp
Expand Up @@ -1494,7 +1494,7 @@ QString QgsLayoutItemMapGrid::gridAnnotationString( double value, QgsLayoutItemM
}

QgsCoordinateFormatter::Format format = QgsCoordinateFormatter::FormatDecimalDegrees;
QgsCoordinateFormatter::FormatFlags flags = nullptr;
QgsCoordinateFormatter::FormatFlags flags = QgsCoordinateFormatter::FormatFlags();
switch ( mGridAnnotationFormat )
{
case Decimal:
Expand Down
2 changes: 1 addition & 1 deletion src/core/layout/qgslayoutrendercontext.cpp
Expand Up @@ -61,7 +61,7 @@ bool QgsLayoutRenderContext::testFlag( const QgsLayoutRenderContext::Flag flag )

QgsRenderContext::Flags QgsLayoutRenderContext::renderContextFlags() const
{
QgsRenderContext::Flags flags = nullptr;
QgsRenderContext::Flags flags = QgsRenderContext::Flags();
if ( mFlags & FlagAntialiasing )
flags = flags | QgsRenderContext::Antialiasing;
if ( mFlags & FlagUseAdvancedEffects )
Expand Down
4 changes: 2 additions & 2 deletions src/core/processing/qgsprocessingparameters.h
Expand Up @@ -81,7 +81,7 @@ class CORE_EXPORT QgsProcessingFeatureSourceDefinition
* the default geometry check method (as dictated by QgsProcessingContext) for this source.
*/
QgsProcessingFeatureSourceDefinition( const QString &source = QString(), bool selectedFeaturesOnly = false, long long featureLimit = -1,
QgsProcessingFeatureSourceDefinition::Flags flags = nullptr, QgsFeatureRequest::InvalidGeometryCheck geometryCheck = QgsFeatureRequest::GeometryAbortOnInvalid )
QgsProcessingFeatureSourceDefinition::Flags flags = QgsProcessingFeatureSourceDefinition::Flags(), QgsFeatureRequest::InvalidGeometryCheck geometryCheck = QgsFeatureRequest::GeometryAbortOnInvalid )
: source( QgsProperty::fromValue( source ) )
, selectedFeaturesOnly( selectedFeaturesOnly )
, featureLimit( featureLimit )
Expand All @@ -103,7 +103,7 @@ class CORE_EXPORT QgsProcessingFeatureSourceDefinition
* the default geometry check method (as dictated by QgsProcessingContext) for this source.
*/
QgsProcessingFeatureSourceDefinition( const QgsProperty &source, bool selectedFeaturesOnly = false, long long featureLimit = -1,
QgsProcessingFeatureSourceDefinition::Flags flags = nullptr, QgsFeatureRequest::InvalidGeometryCheck geometryCheck = QgsFeatureRequest::GeometryAbortOnInvalid )
QgsProcessingFeatureSourceDefinition::Flags flags = QgsProcessingFeatureSourceDefinition::Flags(), QgsFeatureRequest::InvalidGeometryCheck geometryCheck = QgsFeatureRequest::GeometryAbortOnInvalid )
: source( source )
, selectedFeaturesOnly( selectedFeaturesOnly )
, featureLimit( featureLimit )
Expand Down
6 changes: 3 additions & 3 deletions src/core/processing/qgsprocessingutils.h
Expand Up @@ -569,9 +569,9 @@ class CORE_EXPORT QgsProcessingFeatureSink : public QgsProxyFeatureSink
*/
QgsProcessingFeatureSink( QgsFeatureSink *originalSink, const QString &sinkName, QgsProcessingContext &context, bool ownsOriginalSink = false );
~QgsProcessingFeatureSink() override;
bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = nullptr ) override;
bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = nullptr ) override;
bool addFeatures( QgsFeatureIterator &iterator, QgsFeatureSink::Flags flags = nullptr ) override;
bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() ) override;
bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() ) override;
bool addFeatures( QgsFeatureIterator &iterator, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() ) override;

private:

Expand Down
2 changes: 1 addition & 1 deletion src/core/providers/memory/qgsmemoryprovider.h
Expand Up @@ -56,7 +56,7 @@ class QgsMemoryProvider final: public QgsVectorDataProvider
QgsWkbTypes::Type wkbType() const override;
long featureCount() const override;
QgsFields fields() const override;
bool addFeatures( QgsFeatureList &flist, QgsFeatureSink::Flags flags = nullptr ) override;
bool addFeatures( QgsFeatureList &flist, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() ) override;
bool deleteFeatures( const QgsFeatureIds &id ) override;
bool addAttributes( const QList<QgsField> &attributes ) override;
bool renameAttributes( const QgsFieldNameMap &renamedAttributes ) override;
Expand Down
2 changes: 1 addition & 1 deletion src/core/providers/ogr/qgsogrprovider.h
Expand Up @@ -121,7 +121,7 @@ class QgsOgrProvider final: public QgsVectorDataProvider
QString defaultValueClause( int fieldIndex ) const override;
bool skipConstraintCheck( int fieldIndex, QgsFieldConstraints::Constraint constraint, const QVariant &value = QVariant() ) const override;
void updateExtents() override;
bool addFeatures( QgsFeatureList &flist, QgsFeatureSink::Flags flags = nullptr ) override;
bool addFeatures( QgsFeatureList &flist, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() ) override;
bool deleteFeatures( const QgsFeatureIds &id ) override;
bool addAttributes( const QList<QgsField> &attributes ) override;
bool deleteAttributes( const QgsAttributeIds &attributes ) override;
Expand Down
6 changes: 3 additions & 3 deletions src/core/qgsfeaturesink.h
Expand Up @@ -78,20 +78,20 @@ class CORE_EXPORT QgsFeatureSink
* \see addFeatures()
* \returns TRUE in case of success and FALSE in case of failure
*/
virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = nullptr );
virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );

/**
* Adds a list of \a features to the sink. Feature addition behavior is controlled by the specified \a flags.
* \see addFeature()
* \returns TRUE in case of success and FALSE in case of failure
*/
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = nullptr ) = 0;
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() ) = 0;

/**
* Adds all features from the specified \a iterator to the sink. Feature addition behavior is controlled by the specified \a flags.
* \returns TRUE if all features were added successfully, or FALSE if any feature could not be added
*/
virtual bool addFeatures( QgsFeatureIterator &iterator, QgsFeatureSink::Flags flags = nullptr );
virtual bool addFeatures( QgsFeatureIterator &iterator, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );

/**
* Flushes any internal buffer which may exist in the sink, causing any buffered features to be added to the sink's destination.
Expand Down
4 changes: 2 additions & 2 deletions src/core/qgsfeaturestore.h
Expand Up @@ -62,8 +62,8 @@ class CORE_EXPORT QgsFeatureStore : public QgsFeatureSink
*/
void setCrs( const QgsCoordinateReferenceSystem &crs ) { mCrs = crs; }

bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = nullptr ) override;
bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = nullptr ) override;
bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() ) override;
bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() ) override;

/**
* Returns the number of features contained in the store.
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsmaplayer.h
Expand Up @@ -566,7 +566,7 @@ class CORE_EXPORT QgsMapLayer : public QObject
*
* \returns TRUE if successful
*/
bool readLayerXml( const QDomElement &layerElement, QgsReadWriteContext &context, QgsMapLayer::ReadFlags flags = nullptr );
bool readLayerXml( const QDomElement &layerElement, QgsReadWriteContext &context, QgsMapLayer::ReadFlags flags = QgsMapLayer::ReadFlags() );

/**
* Stores state in DOM node
Expand Down

0 comments on commit 43b122e

Please sign in to comment.