Skip to content

Commit

Permalink
Merge pull request #5166 from nyalldawson/tidy
Browse files Browse the repository at this point in the history
clang-tidy fixes
  • Loading branch information
nyalldawson committed Sep 11, 2017
2 parents 6772541 + 9b04589 commit 311a24a
Show file tree
Hide file tree
Showing 613 changed files with 845 additions and 2,072 deletions.
4 changes: 4 additions & 0 deletions python/analysis/network/qgsgraph.sip
Expand Up @@ -107,7 +107,11 @@ class QgsGraph
#include "qgsgraph.h"
%End
public:

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


int addVertex( const QgsPointXY &pt );
Expand Down
5 changes: 5 additions & 0 deletions python/core/diagram/qgsdiagram.sip
Expand Up @@ -19,6 +19,7 @@ class QgsDiagram
#include "qgsdiagram.h"
%End
public:

virtual ~QgsDiagram();

virtual QgsDiagram *clone() const = 0 /Factory/;
Expand Down Expand Up @@ -71,7 +72,11 @@ Returns the size in map units the diagram will use to render. Interpolate size
%End

protected:

QgsDiagram();
%Docstring
Constructor for QgsDiagram.
%End
QgsDiagram( const QgsDiagram &other );

void setPenWidth( QPen &pen, const QgsDiagramSettings &s, const QgsRenderContext &c );
Expand Down
3 changes: 3 additions & 0 deletions python/core/fieldformatter/qgsvaluerelationfieldformatter.sip
Expand Up @@ -35,6 +35,9 @@ class QgsValueRelationFieldFormatter : QgsFieldFormatter
typedef QVector < QgsValueRelationFieldFormatter::ValueRelationItem > ValueRelationCache;

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

virtual QString id() const;

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

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


Expand Down
1 change: 0 additions & 1 deletion python/core/gps/qgsgpsdconnection.sip
Expand Up @@ -21,7 +21,6 @@ class QgsGpsdConnection: QgsNMEAConnection
%End
public:
QgsGpsdConnection( const QString &host, qint16 port, const QString &device );
~QgsGpsdConnection();

};

Expand Down
1 change: 0 additions & 1 deletion python/core/gps/qgsnmeaconnection.sip
Expand Up @@ -20,7 +20,6 @@ class QgsNMEAConnection: QgsGPSConnection
%End
public:
QgsNMEAConnection( QIODevice *dev );
~QgsNMEAConnection();

protected slots:
virtual void parseData();
Expand Down
1 change: 0 additions & 1 deletion python/core/gps/qgsqtlocationconnection.sip
Expand Up @@ -28,7 +28,6 @@ class QgsQtLocationConnection: QgsGPSConnection
%End
public:
QgsQtLocationConnection();
~QgsQtLocationConnection();

protected slots:
void broadcastConnectionAvailable();
Expand Down
3 changes: 3 additions & 0 deletions python/core/qgscolorscheme.sip
Expand Up @@ -286,6 +286,9 @@ class QgsProjectColorScheme : QgsColorScheme
public:

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

virtual QString schemeName() const;

Expand Down
7 changes: 7 additions & 0 deletions python/core/qgscredentials.sip
Expand Up @@ -30,6 +30,9 @@ class QgsCredentials
public:

virtual ~QgsCredentials();
%Docstring
Destructor.
%End

bool get( const QString &realm, QString &username /In,Out/, QString &password /In,Out/, const QString &message = QString() );
%Docstring
Expand Down Expand Up @@ -70,7 +73,11 @@ retrieves instance
%End

protected:

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

virtual bool request( const QString &realm, QString &username /In,Out/, QString &password /In,Out/, const QString &message = QString() ) = 0;
%Docstring
Expand Down
4 changes: 4 additions & 0 deletions python/core/qgsdatadefinedsizelegend.sip
Expand Up @@ -25,7 +25,11 @@ class QgsDataDefinedSizeLegend
#include "qgsdatadefinedsizelegend.h"
%End
public:

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

QgsDataDefinedSizeLegend( const QgsDataDefinedSizeLegend &other );
%Docstring
Expand Down
1 change: 0 additions & 1 deletion python/core/qgsdiagramrenderer.sip
Expand Up @@ -11,7 +11,6 @@




class QgsDiagramLayerSettings
{
%Docstring
Expand Down
3 changes: 3 additions & 0 deletions python/core/qgsexpressionfieldbuffer.sip
Expand Up @@ -31,6 +31,9 @@ class QgsExpressionFieldBuffer
};

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

void addExpression( const QString &exp, const QgsField &fld );
%Docstring
Expand Down
4 changes: 4 additions & 0 deletions python/core/qgsgmlschema.sip
Expand Up @@ -18,7 +18,11 @@ class QgsGmlFeatureClass
#include "qgsgmlschema.h"
%End
public:

QgsGmlFeatureClass();
%Docstring
Constructor for QgsGmlFeatureClass.
%End
QgsGmlFeatureClass( const QString &name, const QString &path );

QList<QgsField> &fields();
Expand Down
2 changes: 1 addition & 1 deletion python/core/qgsjsonutils.sip
Expand Up @@ -248,7 +248,7 @@ class QgsJsonUtils
%End

static QString exportAttributes( const QgsFeature &feature, QgsVectorLayer *layer = 0,
QVector<QVariant> attributeWidgetCaches = QVector<QVariant>() );
const QVector<QVariant> &attributeWidgetCaches = QVector<QVariant>() );
%Docstring
Exports all attributes from a QgsFeature as a JSON map type.
\param feature feature to export
Expand Down
4 changes: 4 additions & 0 deletions python/core/qgslabelsearchtree.sip
Expand Up @@ -20,7 +20,11 @@ class QgsLabelSearchTree
#include "qgslabelsearchtree.h"
%End
public:

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


Expand Down
2 changes: 1 addition & 1 deletion python/core/qgsmaprenderertask.sip
Expand Up @@ -48,7 +48,7 @@ class QgsMapRendererTask : QgsTask
Adds ``annotations`` to be rendered on the map.
%End

void addDecorations( QList< QgsMapDecoration * > decorations );
void addDecorations( const QList<QgsMapDecoration *> &decorations );
%Docstring
Adds ``decorations`` to be rendered on the map.
%End
Expand Down
4 changes: 4 additions & 0 deletions python/core/qgsobjectcustomproperties.sip
Expand Up @@ -23,7 +23,11 @@ class QgsObjectCustomProperties
#include "qgsobjectcustomproperties.h"
%End
public:

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

QStringList keys() const;
%Docstring
Expand Down
3 changes: 3 additions & 0 deletions python/core/qgspluginlayerregistry.sip
Expand Up @@ -68,6 +68,9 @@ class QgsPluginLayerRegistry
public:

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


Expand Down
3 changes: 3 additions & 0 deletions python/core/qgspropertycollection.sip
Expand Up @@ -368,6 +368,9 @@ class QgsPropertyCollectionStack : QgsAbstractPropertyCollection
public:

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

~QgsPropertyCollectionStack();

Expand Down
10 changes: 0 additions & 10 deletions python/core/qgspropertytransformer.sip
Expand Up @@ -339,11 +339,6 @@ class QgsGenericNumericTransformer : QgsPropertyTransformer
\param exponent optional exponential for non-linear scaling
%End

QgsGenericNumericTransformer( const QgsGenericNumericTransformer &other );
%Docstring
Copy constructor.
%End

virtual Type transformerType() const;
virtual QgsGenericNumericTransformer *clone() const /Factory/;
virtual QVariant toVariant() const;
Expand Down Expand Up @@ -475,11 +470,6 @@ class QgsSizeScaleTransformer : QgsPropertyTransformer
\param exponent exponent for Exponential scaling method
%End

QgsSizeScaleTransformer( const QgsSizeScaleTransformer &other );
%Docstring
Copy constructor.
%End

virtual Type transformerType() const;
virtual QgsSizeScaleTransformer *clone() const /Factory/;
virtual QVariant toVariant() const;
Expand Down
4 changes: 4 additions & 0 deletions python/core/qgsreadwritecontext.sip
Expand Up @@ -20,7 +20,11 @@ class QgsReadWriteContext
#include "qgsreadwritecontext.h"
%End
public:

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

const QgsPathResolver &pathResolver() const;
%Docstring
Expand Down
2 changes: 1 addition & 1 deletion python/core/qgssettings.sip
Expand Up @@ -166,7 +166,7 @@ Returns a list of all key top-level groups (same as childGroups) but only for gr
Return the path to the Global Settings QSettings storage file
:rtype: str
%End
static bool setGlobalSettingsPath( QString path );
static bool setGlobalSettingsPath( const QString &path );
%Docstring
Set the Global Settings QSettings storage file
:rtype: bool
Expand Down
4 changes: 4 additions & 0 deletions python/core/qgstrackedvectorlayertools.sip
Expand Up @@ -14,7 +14,11 @@ class QgsTrackedVectorLayerTools : QgsVectorLayerTools
#include "qgstrackedvectorlayertools.h"
%End
public:

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

virtual bool addFeature( QgsVectorLayer *layer, const QgsAttributeMap &defaultValues, const QgsGeometry &defaultGeometry, QgsFeature *feature ) const;

Expand Down
4 changes: 4 additions & 0 deletions python/core/raster/qgsbilinearrasterresampler.sip
Expand Up @@ -20,7 +20,11 @@ Bilinear Raster Resampler
#include "qgsbilinearrasterresampler.h"
%End
public:

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

virtual void resample( const QImage &srcImage, QImage &dstImage );

Expand Down
4 changes: 4 additions & 0 deletions python/core/raster/qgsrasterpipe.sip
Expand Up @@ -34,6 +34,10 @@ class QgsRasterPipe
};

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


~QgsRasterPipe();

Expand Down
10 changes: 10 additions & 0 deletions python/core/raster/qgsrastertransparency.sip
Expand Up @@ -19,7 +19,11 @@ class QgsRasterTransparency
#include "qgsrastertransparency.h"
%End
public:

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

struct TransparentThreeValuePixel
{
Expand Down Expand Up @@ -87,8 +91,14 @@ True if there are no entries in the pixel lists except the nodata value
%End

void writeXml( QDomDocument &doc, QDomElement &parentElem ) const;
%Docstring
Writes the transparency information to an XML document.
%End

void readXml( const QDomElement &elem );
%Docstring
Reads the transparency information from an XML document.
%End

};
/************************************************************************
Expand Down
1 change: 0 additions & 1 deletion python/core/symbology/qgscategorizedsymbolrenderer.sip
Expand Up @@ -78,7 +78,6 @@ class QgsCategorizedSymbolRenderer : QgsFeatureRenderer
public:

QgsCategorizedSymbolRenderer( const QString &attrName = QString(), const QgsCategoryList &categories = QgsCategoryList() );
~QgsCategorizedSymbolRenderer();

virtual QgsSymbol *symbolForFeature( QgsFeature &feature, QgsRenderContext &context );
virtual QgsSymbol *originalSymbolForFeature( QgsFeature &feature, QgsRenderContext &context );
Expand Down
1 change: 0 additions & 1 deletion python/core/symbology/qgssinglesymbolrenderer.sip
Expand Up @@ -17,7 +17,6 @@ class QgsSingleSymbolRenderer : QgsFeatureRenderer
public:

QgsSingleSymbolRenderer( QgsSymbol *symbol /Transfer/ );
~QgsSingleSymbolRenderer();

virtual QgsSymbol *symbolForFeature( QgsFeature &feature, QgsRenderContext &context );
virtual QgsSymbol *originalSymbolForFeature( QgsFeature &feature, QgsRenderContext &context );
Expand Down
1 change: 0 additions & 1 deletion python/gui/attributetable/qgsfeaturelistmodel.sip
Expand Up @@ -34,7 +34,6 @@ class QgsFeatureListModel : QAbstractProxyModel, QgsFeatureModel

public:
explicit QgsFeatureListModel( QgsAttributeTableFilterModel *sourceModel, QObject *parent /TransferThis/ = 0 );
virtual ~QgsFeatureListModel();

virtual void setSourceModel( QgsAttributeTableFilterModel *sourceModel );
QgsVectorLayerCache *layerCache();
Expand Down
2 changes: 0 additions & 2 deletions python/gui/attributetable/qgsfieldconditionalformatwidget.sip
Expand Up @@ -28,8 +28,6 @@ class QgsFieldConditionalFormatWidget : QWidget
\param parent parent widget
%End

~QgsFieldConditionalFormatWidget();

void viewRules();
%Docstring
Switches the widget to the rules page.
Expand Down
2 changes: 1 addition & 1 deletion python/gui/qgsfiledownloader.sip
Expand Up @@ -32,7 +32,7 @@ class QgsFileDownloader : QObject
%End
public:

QgsFileDownloader( const QUrl &url, const QString &outputFileName, bool guiNotificationsEnabled = true, QString authcfg = QString() );
QgsFileDownloader( const QUrl &url, const QString &outputFileName, bool guiNotificationsEnabled = true, const QString &authcfg = QString() );
%Docstring
QgsFileDownloader
\param url the download url
Expand Down
4 changes: 4 additions & 0 deletions python/gui/qgssourceselectproviderregistry.sip
Expand Up @@ -30,7 +30,11 @@ class QgsSourceSelectProviderRegistry
#include "qgssourceselectproviderregistry.h"
%End
public:

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

~QgsSourceSelectProviderRegistry();

Expand Down
1 change: 0 additions & 1 deletion python/gui/symbology/qgssvgselectorwidget.sip
Expand Up @@ -75,7 +75,6 @@ class QgsSvgSelectorWidget : QWidget
%End
public:
QgsSvgSelectorWidget( QWidget *parent /TransferThis/ = 0 );
~QgsSvgSelectorWidget();

QString currentSvgPath() const;
%Docstring
Expand Down
3 changes: 3 additions & 0 deletions python/gui/symbology/qgssymbolwidgetcontext.sip
Expand Up @@ -26,6 +26,9 @@ class QgsSymbolWidgetContext
public:

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

QgsSymbolWidgetContext( const QgsSymbolWidgetContext &other );
%Docstring
Expand Down

0 comments on commit 311a24a

Please sign in to comment.