Skip to content

Commit

Permalink
Replace default constructors/destructors with = default
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 30, 2017
1 parent 08cb2d7 commit 92af1da
Show file tree
Hide file tree
Showing 457 changed files with 675 additions and 1,416 deletions.
4 changes: 4 additions & 0 deletions python/analysis/network/qgsgraph.sip
Expand Up @@ -22,7 +22,11 @@ class QgsGraphEdge
#include "qgsgraph.h"
%End
public:

QgsGraphEdge();
%Docstring
Constructor for QgsGraphEdge.
%End

QVariant cost( int strategyIndex ) const;
%Docstring
Expand Down
14 changes: 14 additions & 0 deletions python/analysis/openstreetmap/qgsosmbase.sip
Expand Up @@ -68,7 +68,12 @@ point features or be used to define the path of a way.
#include "qgsosmbase.h"
%End
public:

QgsOSMNode();
%Docstring
Constructor for QgsOSMNode.
%End

QgsOSMNode( QgsOSMId id, const QgsPointXY &point );

QgsPointXY point() const;
Expand All @@ -93,7 +98,12 @@ or both.
#include "qgsosmbase.h"
%End
public:

QgsOSMWay();
%Docstring
Constructor for QgsOSMWay.
%End

QgsOSMWay( QgsOSMId id, const QList<QgsOSMId> &nodes );

QList<QgsOSMId> nodes() const;
Expand All @@ -116,7 +126,11 @@ class QgsOSMTags
#include "qgsosmbase.h"
%End
public:

QgsOSMTags();
%Docstring
Constructor for QgsOSMTags.
%End

int count() const;
%Docstring
Expand Down
4 changes: 4 additions & 0 deletions python/analysis/raster/qgsrastercalcnode.sip
Expand Up @@ -54,6 +54,10 @@ class QgsRasterCalcNode
};

QgsRasterCalcNode();
%Docstring
Constructor for QgsRasterCalcNode.
%End

QgsRasterCalcNode( double number );
QgsRasterCalcNode( QgsRasterMatrix *matrix );
QgsRasterCalcNode( Operator op, QgsRasterCalcNode *left, QgsRasterCalcNode *right );
Expand Down
4 changes: 4 additions & 0 deletions python/core/composer/qgscomposerattributetablev2.sip
Expand Up @@ -20,7 +20,11 @@ class QgsComposerAttributeTableCompareV2
#include "qgscomposerattributetablev2.h"
%End
public:

QgsComposerAttributeTableCompareV2();
%Docstring
Constructor for QgsComposerAttributeTableCompareV2.
%End
bool operator()( const QgsComposerTableRow &m1, const QgsComposerTableRow &m2 );
%Docstring
:rtype: bool
Expand Down
4 changes: 4 additions & 0 deletions python/core/composer/qgscomposereffect.sip
Expand Up @@ -17,7 +17,11 @@ class QgsComposerEffect : QGraphicsEffect
#include "qgscomposereffect.h"
%End
public:

QgsComposerEffect();
%Docstring
Constructor for QgsComposerEffect.
%End

void setCompositionMode( QPainter::CompositionMode compositionMode );

Expand Down
3 changes: 3 additions & 0 deletions python/core/dxf/qgsdxfexport.sip
Expand Up @@ -28,6 +28,9 @@ class QgsDxfExport
};

QgsDxfExport();
%Docstring
Constructor for QgsDxfExport.
%End

void setMapSettings( const QgsMapSettings &settings );
%Docstring
Expand Down
3 changes: 3 additions & 0 deletions python/core/effects/qgsblureffect.sip
Expand Up @@ -38,6 +38,9 @@ class QgsBlurEffect : QgsPaintEffect
%End

QgsBlurEffect();
%Docstring
Constructor for QgsBlurEffect.
%End

virtual QString type() const;
virtual QgsStringMap properties() const;
Expand Down
4 changes: 4 additions & 0 deletions python/core/effects/qgseffectstack.sip
Expand Up @@ -44,6 +44,10 @@ class QgsEffectStack : QgsPaintEffect
%End

QgsEffectStack();
%Docstring
Constructor for empty QgsEffectStack.
%End

QgsEffectStack( const QgsEffectStack &other );

explicit QgsEffectStack( const QgsPaintEffect &effect );
Expand Down
4 changes: 4 additions & 0 deletions python/core/effects/qgspainteffect.sip
Expand Up @@ -86,6 +86,10 @@ class QgsPaintEffect
};

QgsPaintEffect();
%Docstring
Constructor for QgsPaintEffect.
%End

QgsPaintEffect( const QgsPaintEffect &other );
virtual ~QgsPaintEffect();

Expand Down
3 changes: 3 additions & 0 deletions python/core/effects/qgstransformeffect.sip
Expand Up @@ -32,6 +32,9 @@ class QgsTransformEffect : QgsPaintEffect
%End

QgsTransformEffect();
%Docstring
Constructor for QgsTransformEffect.
%End

virtual QString type() const;
virtual QgsStringMap properties() const;
Expand Down
3 changes: 3 additions & 0 deletions python/core/geometry/qgsabstractgeometry.sip
Expand Up @@ -66,6 +66,9 @@ class QgsAbstractGeometry
};

QgsAbstractGeometry();
%Docstring
Constructor for QgsAbstractGeometry.
%End
virtual ~QgsAbstractGeometry();
QgsAbstractGeometry( const QgsAbstractGeometry &geom );

Expand Down
4 changes: 4 additions & 0 deletions python/core/geometry/qgscurve.sip
Expand Up @@ -21,7 +21,11 @@ class QgsCurve: QgsAbstractGeometry
#include "qgscurve.h"
%End
public:

QgsCurve();
%Docstring
Constructor for QgsCurve.
%End

virtual bool operator==( const QgsCurve &other ) const = 0;
virtual bool operator!=( const QgsCurve &other ) const = 0;
Expand Down
4 changes: 4 additions & 0 deletions python/core/geometry/qgsellipse.sip
Expand Up @@ -25,7 +25,11 @@ class QgsEllipse
#include "qgsellipse.h"
%End
public:

QgsEllipse();
%Docstring
Constructor for QgsEllipse.
%End

virtual ~QgsEllipse();

Expand Down
3 changes: 3 additions & 0 deletions python/core/geometry/qgsregularpolygon.sip
Expand Up @@ -34,6 +34,9 @@ class QgsRegularPolygon
};

QgsRegularPolygon();
%Docstring
Constructor for QgsRegularPolygon.
%End

QgsRegularPolygon( const QgsPoint &center, const double radius, const double azimuth, const unsigned int numberSides, const ConstructionOption circle );
%Docstring
Expand Down
3 changes: 3 additions & 0 deletions python/core/qgsattributetableconfig.sip
Expand Up @@ -50,6 +50,9 @@ Constructor for ColumnConfig
};

QgsAttributeTableConfig();
%Docstring
Constructor for QgsAttributeTableConfig.
%End

QVector<QgsAttributeTableConfig::ColumnConfig> columns() const;
%Docstring
Expand Down
4 changes: 4 additions & 0 deletions python/core/qgscolorramp.sip
Expand Up @@ -417,7 +417,11 @@ class QgsRandomColorRamp: QgsColorRamp
#include "qgscolorramp.h"
%End
public:

QgsRandomColorRamp();
%Docstring
Constructor for QgsRandomColorRamp.
%End

virtual int count() const;

Expand Down
9 changes: 9 additions & 0 deletions python/core/qgscolorscheme.sip
Expand Up @@ -131,6 +131,9 @@ class QgsGplColorScheme : QgsColorScheme
public:

QgsGplColorScheme();
%Docstring
Constructor for QgsGplColorScheme.
%End

virtual QgsNamedColorList fetchColors( const QString &context = QString(),
const QColor &baseColor = QColor() );
Expand Down Expand Up @@ -216,6 +219,9 @@ class QgsRecentColorScheme : QgsColorScheme
public:

QgsRecentColorScheme();
%Docstring
Constructor for QgsRecentColorScheme.
%End

virtual QString schemeName() const;

Expand Down Expand Up @@ -257,6 +263,9 @@ class QgsCustomColorScheme : QgsColorScheme
public:

QgsCustomColorScheme();
%Docstring
Constructor for QgsCustomColorScheme.
%End

virtual QString schemeName() const;

Expand Down
3 changes: 3 additions & 0 deletions python/core/qgsdiagramrenderer.sip
Expand Up @@ -463,6 +463,9 @@ class QgsDiagramRenderer
public:

QgsDiagramRenderer();
%Docstring
Constructor for QgsDiagramRenderer.
%End
virtual ~QgsDiagramRenderer();

virtual QgsDiagramRenderer *clone() const = 0 /Factory/;
Expand Down
3 changes: 3 additions & 0 deletions python/core/qgshistogram.sip
Expand Up @@ -27,6 +27,9 @@ class QgsHistogram
public:

QgsHistogram();
%Docstring
Constructor for QgsHistogram.
%End

virtual ~QgsHistogram();

Expand Down
3 changes: 3 additions & 0 deletions python/core/qgsmessagelog.sip
Expand Up @@ -39,6 +39,9 @@ class QgsMessageLog : QObject
};

QgsMessageLog();
%Docstring
Constructor for QgsMessageLog.
%End

static void logMessage( const QString &message, const QString &tag = QString(), MessageLevel level = QgsMessageLog::WARNING );
%Docstring
Expand Down
3 changes: 3 additions & 0 deletions python/core/qgsmessageoutput.sip
Expand Up @@ -89,6 +89,9 @@ be the right choice for apps without GUI.
public:

QgsMessageOutputConsole();
%Docstring
Constructor for QgsMessageOutputConsole.
%End

virtual void setMessage( const QString &message, MessageType msgType );

Expand Down
4 changes: 4 additions & 0 deletions python/core/qgsmultirenderchecker.sip
Expand Up @@ -45,7 +45,11 @@ class QgsMultiRenderChecker
#include "qgsmultirenderchecker.h"
%End
public:

QgsMultiRenderChecker();
%Docstring
Constructor for QgsMultiRenderChecker.
%End

virtual ~QgsMultiRenderChecker();

Expand Down
4 changes: 4 additions & 0 deletions python/core/qgsnetworkcontentfetcher.sip
Expand Up @@ -25,7 +25,11 @@ handled.
#include "qgsnetworkcontentfetcher.h"
%End
public:

QgsNetworkContentFetcher();
%Docstring
Constructor for QgsNetworkContentFetcher.
%End

virtual ~QgsNetworkContentFetcher();

Expand Down
3 changes: 3 additions & 0 deletions python/core/qgsrenderchecker.sip
Expand Up @@ -24,6 +24,9 @@ class QgsRenderChecker
public:

QgsRenderChecker();
%Docstring
Constructor for QgsRenderChecker.
%End

QString controlImagePath() const;
%Docstring
Expand Down
4 changes: 4 additions & 0 deletions python/core/qgstracer.sip
Expand Up @@ -25,7 +25,11 @@ class QgsTracer : QObject
#include "qgstracer.h"
%End
public:

QgsTracer();
%Docstring
Constructor for QgsTracer.
%End
~QgsTracer();

QList<QgsVectorLayer *> layers() const;
Expand Down
4 changes: 4 additions & 0 deletions python/core/raster/qgscubicrasterresampler.sip
Expand Up @@ -20,7 +20,11 @@ Cubic Raster Resampler
#include "qgscubicrasterresampler.h"
%End
public:

QgsCubicRasterResampler();
%Docstring
Constructor for QgsCubicRasterResampler.
%End
virtual QgsCubicRasterResampler *clone() const /Factory/;

virtual void resample( const QImage &srcImage, QImage &dstImage );
Expand Down
4 changes: 4 additions & 0 deletions python/core/raster/qgsrasteridentifyresult.sip
Expand Up @@ -19,7 +19,11 @@ class QgsRasterIdentifyResult
#include "qgsrasteridentifyresult.h"
%End
public:

QgsRasterIdentifyResult();
%Docstring
Constructor for QgsRasterIdentifyResult.
%End

QgsRasterIdentifyResult( QgsRaster::IdentifyFormat format, const QMap<int, QVariant> &results );
%Docstring
Expand Down
4 changes: 4 additions & 0 deletions python/core/symbology/qgscategorizedsymbolrenderer.sip
Expand Up @@ -19,7 +19,11 @@ class QgsRendererCategory
#include "qgscategorizedsymbolrenderer.h"
%End
public:

QgsRendererCategory();
%Docstring
Constructor for QgsRendererCategory.
%End

QgsRendererCategory( const QVariant &value, QgsSymbol *symbol /Transfer/, const QString &label, bool render = true );
%Docstring
Expand Down
4 changes: 4 additions & 0 deletions python/core/symbology/qgsgraduatedsymbolrenderer.sip
Expand Up @@ -16,7 +16,11 @@ class QgsRendererRange
#include "qgsgraduatedsymbolrenderer.h"
%End
public:

QgsRendererRange();
%Docstring
Constructor for QgsRendererRange.
%End
QgsRendererRange( double lowerValue, double upperValue, QgsSymbol *symbol /Transfer/, const QString &label, bool render = true );
QgsRendererRange( const QgsRendererRange &range );

Expand Down
5 changes: 5 additions & 0 deletions python/core/symbology/qgslegendsymbolitem.sip
Expand Up @@ -24,7 +24,12 @@ class QgsLegendSymbolItem
#include "qgslegendsymbolitem.h"
%End
public:

QgsLegendSymbolItem();
%Docstring
Constructor for QgsLegendSymbolItem.
%End

QgsLegendSymbolItem( QgsSymbol *symbol, const QString &label, const QString &ruleKey, bool checkable = false, int scaleMinDenom = -1, int scaleMaxDenom = -1, int level = 0, const QString &parentRuleKey = QString() );
%Docstring
.. versionadded:: 2.8
Expand Down
4 changes: 4 additions & 0 deletions python/core/symbology/qgsstyle.sip
Expand Up @@ -31,7 +31,11 @@ class QgsStyle : QObject
#include "qgsstyle.h"
%End
public:

QgsStyle();
%Docstring
Constructor for QgsStyle.
%End
~QgsStyle();

enum StyleEntity { SymbolEntity, TagEntity, ColorrampEntity, SmartgroupEntity };
Expand Down

0 comments on commit 92af1da

Please sign in to comment.