Skip to content
Permalink
Browse files
Merge pull request #5602 from nyalldawson/modernize2
Apply some more clang-tidy modernizations
  • Loading branch information
nyalldawson committed Nov 11, 2017
2 parents 8c6e029 + 5a6c222 commit bcb815bbf13f965c5b82523d5666bba9e46c1712
Show file tree
Hide file tree
Showing 189 changed files with 356 additions and 588 deletions.
@@ -93,7 +93,6 @@ class QgsImageOperation

struct DistanceTransformProperties
{
DistanceTransformProperties();

bool shadeExterior;
%Docstring
@@ -300,6 +300,9 @@ class QgsDrawSourceEffect : QgsPaintEffect
public:

QgsDrawSourceEffect();
%Docstring
Constructor for QgsDrawSourceEffect
%End

static QgsPaintEffect *create( const QgsStringMap &map ) /Factory/;
%Docstring
@@ -25,8 +25,14 @@ class QgsValueRelationFieldFormatter : QgsFieldFormatter
struct ValueRelationItem
{
ValueRelationItem( const QVariant &key, const QString &value );
%Docstring
Constructor for ValueRelationItem
%End

ValueRelationItem();
%Docstring
Constructor for ValueRelationItem
%End

QVariant key;
QString value;
@@ -646,6 +646,9 @@ class QgsVertexIterator
%End
public:
QgsVertexIterator();
%Docstring
Constructor for QgsVertexIterator
%End

QgsVertexIterator( const QgsAbstractGeometry *geometry );
%Docstring
@@ -24,6 +24,9 @@ class QgsDartMeasurement
};

QgsDartMeasurement();
%Docstring
Constructor for QgsDartMeasurement
%End

QgsDartMeasurement( const QString &name, Type type, const QString &value );

@@ -319,6 +319,9 @@ class QgsDiagramSettings
};

QgsDiagramSettings();
%Docstring
Constructor for QgsDiagramSettings
%End

bool enabled;
QFont font;
@@ -614,7 +617,11 @@ class QgsSingleCategoryDiagramRenderer : QgsDiagramRenderer
#include "qgsdiagramrenderer.h"
%End
public:

QgsSingleCategoryDiagramRenderer();
%Docstring
Constructor for QgsSingleCategoryDiagramRenderer
%End

virtual QgsSingleCategoryDiagramRenderer *clone() const /Factory/;

@@ -29,6 +29,9 @@ class QgsEditFormConfig
struct GroupData
{
GroupData();
%Docstring
Constructor for GroupData
%End
GroupData( const QString &name, const QList<QString> &fields );
QString mName;
QList<QString> mFields;
@@ -37,6 +40,9 @@ class QgsEditFormConfig
struct TabData
{
TabData();
%Docstring
Constructor for TabData
%End
TabData( const QString &name, const QList<QString> &fields, const QList<QgsEditFormConfig::GroupData> &groups );
QString mName;
QList<QString> mFields;
@@ -27,6 +27,9 @@ class QgsEditorWidgetSetup
%End

QgsEditorWidgetSetup();
%Docstring
Constructor for QgsEditorWidgetSetup
%End

QString type() const;
%Docstring
@@ -27,6 +27,9 @@ class QgsErrorMessage
};

QgsErrorMessage();
%Docstring
Constructor for QgsErrorMessage
%End

QgsErrorMessage( const QString &message, const QString &tag = QString(), const QString &file = QString(), const QString &function = QString(), int line = 0 );
%Docstring
@@ -75,6 +78,9 @@ class QgsError
public:

QgsError();
%Docstring
Constructor for QgsError
%End

QgsError( const QString &message, const QString &tag );
%Docstring
@@ -345,6 +345,9 @@ class QgsExpressionContext
public:

QgsExpressionContext();
%Docstring
Constructor for QgsExpressionContext
%End

explicit QgsExpressionContext( const QList<QgsExpressionContextScope *> &scopes /Transfer/ );
%Docstring
@@ -20,7 +20,11 @@ class QgsLabelPosition
%End
public:
QgsLabelPosition( int id, double r, const QVector< QgsPointXY > &corners, const QgsRectangle &rect, double w, double h, const QString &layer, const QString &labeltext, const QFont &labelfont, bool upside_down, bool diagram = false, bool pinned = false, const QString &providerId = QString() );

QgsLabelPosition();
%Docstring
Constructor for QgsLabelPosition
%End

int featureId;
double rotation;
@@ -107,6 +107,9 @@ There are two possibilities how to use this class:
struct MetaData
{
MetaData();
%Docstring
Constructor for MetaData
%End

MetaData( const QString &longName, const QString &trLongName, const QString &glob, const QString &ext, const QMap<QString, QgsVectorFileWriter::Option *> &driverOptions, const QMap<QString, QgsVectorFileWriter::Option *> &layerOptions, const QString &compulsoryEncoding = QString() );

@@ -249,6 +249,9 @@ Signals emitted after committing changes
protected:

QgsVectorLayerEditBuffer();
%Docstring
Constructor for QgsVectorLayerEditBuffer
%End

void updateFields( QgsFields &fields );

@@ -36,6 +36,9 @@ class QgsVectorLayerUtils
public:

QgsDuplicateFeatureContext();
%Docstring
Constructor for QgsDuplicateFeatureContext
%End

QList<QgsVectorLayer *> layers() const;
%Docstring
@@ -404,6 +404,7 @@ class QgsSymbolRenderContext
\param mapUnitScale
%End


QgsRenderContext &renderContext();
%Docstring
:rtype: QgsRenderContext
@@ -39,6 +39,9 @@ class QgsAttributeEditorContext
};

QgsAttributeEditorContext();
%Docstring
Constructor for QgsAttributeEditorContext
%End

QgsAttributeEditorContext( const QgsAttributeEditorContext &parentContext, FormMode formMode );

@@ -32,6 +32,9 @@ class QgsIdentifyMenu : QMenu
struct ActionData
{
ActionData();
%Docstring
Constructor for ActionData
%End

ActionData( QgsMapLayer *layer, QgsMapLayerAction *mapLayerAction = 0 );

@@ -20,8 +20,6 @@ class QgsLongLongValidator : QValidator

QgsLongLongValidator( qint64 bottom, qint64 top, QObject *parent );

~QgsLongLongValidator();

virtual QValidator::State validate( QString &input, int & ) const;

void setBottom( qint64 bottom );