Skip to content
Permalink
Browse files

Replace default constructors/destructors with = default

  • Loading branch information
nyalldawson committed Sep 30, 2017
1 parent 08cb2d7 commit 92af1dacafe2d4ad661fef5d5544b704d428a686
Showing 457 changed files with 675 additions and 1,416 deletions.
@@ -22,7 +22,11 @@ class QgsGraphEdge
#include "qgsgraph.h"
%End
public:

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

QVariant cost( int strategyIndex ) const;
%Docstring
@@ -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;
@@ -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;
@@ -116,7 +126,11 @@ class QgsOSMTags
#include "qgsosmbase.h"
%End
public:

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

int count() const;
%Docstring
@@ -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 );
@@ -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
@@ -17,7 +17,11 @@ class QgsComposerEffect : QGraphicsEffect
#include "qgscomposereffect.h"
%End
public:

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

void setCompositionMode( QPainter::CompositionMode compositionMode );

@@ -28,6 +28,9 @@ class QgsDxfExport
};

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

void setMapSettings( const QgsMapSettings &settings );
%Docstring
@@ -38,6 +38,9 @@ class QgsBlurEffect : QgsPaintEffect
%End

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

virtual QString type() const;
virtual QgsStringMap properties() const;
@@ -44,6 +44,10 @@ class QgsEffectStack : QgsPaintEffect
%End

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

QgsEffectStack( const QgsEffectStack &other );

explicit QgsEffectStack( const QgsPaintEffect &effect );
@@ -86,6 +86,10 @@ class QgsPaintEffect
};

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

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

@@ -32,6 +32,9 @@ class QgsTransformEffect : QgsPaintEffect
%End

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

virtual QString type() const;
virtual QgsStringMap properties() const;
@@ -66,6 +66,9 @@ class QgsAbstractGeometry
};

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

@@ -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;
@@ -25,7 +25,11 @@ class QgsEllipse
#include "qgsellipse.h"
%End
public:

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

virtual ~QgsEllipse();

@@ -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
@@ -50,6 +50,9 @@ Constructor for ColumnConfig
};

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

QVector<QgsAttributeTableConfig::ColumnConfig> columns() const;
%Docstring
@@ -417,7 +417,11 @@ class QgsRandomColorRamp: QgsColorRamp
#include "qgscolorramp.h"
%End
public:

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

virtual int count() const;

@@ -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() );
@@ -216,6 +219,9 @@ class QgsRecentColorScheme : QgsColorScheme
public:

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

virtual QString schemeName() const;

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

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

virtual QString schemeName() const;

@@ -463,6 +463,9 @@ class QgsDiagramRenderer
public:

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

virtual QgsDiagramRenderer *clone() const = 0 /Factory/;
@@ -27,6 +27,9 @@ class QgsHistogram
public:

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

virtual ~QgsHistogram();

@@ -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
@@ -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 );

@@ -45,7 +45,11 @@ class QgsMultiRenderChecker
#include "qgsmultirenderchecker.h"
%End
public:

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

virtual ~QgsMultiRenderChecker();

@@ -25,7 +25,11 @@ handled.
#include "qgsnetworkcontentfetcher.h"
%End
public:

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

virtual ~QgsNetworkContentFetcher();

@@ -24,6 +24,9 @@ class QgsRenderChecker
public:

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

QString controlImagePath() const;
%Docstring
@@ -25,7 +25,11 @@ class QgsTracer : QObject
#include "qgstracer.h"
%End
public:

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

QList<QgsVectorLayer *> layers() const;
@@ -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 );
@@ -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
@@ -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
@@ -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 );

@@ -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
@@ -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 };

0 comments on commit 92af1da

Please sign in to comment.
You can’t perform that action at this time.