Skip to content

Commit

Permalink
Merge pull request #5246 from nyalldawson/clazy
Browse files Browse the repository at this point in the history
Fix some Clazy warnings
  • Loading branch information
nyalldawson committed Sep 25, 2017
2 parents 14a48c0 + b0b1714 commit 154fd61
Show file tree
Hide file tree
Showing 376 changed files with 1,775 additions and 1,617 deletions.
1 change: 1 addition & 0 deletions python/analysis/network/qgsgraphbuilder.sip
Expand Up @@ -44,6 +44,7 @@ class QgsGraphBuilder : QgsGraphBuilderInterface


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/analysis/network/qgsgraphbuilderinterface.sip
Expand Up @@ -92,6 +92,7 @@ Returns measurement tool


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
3 changes: 2 additions & 1 deletion python/analysis/vector/qgszonalstatistics.sip
Expand Up @@ -44,7 +44,7 @@ class QgsZonalStatistics


QgsZonalStatistics( QgsVectorLayer *polygonLayer, QgsZonalStatistics( QgsVectorLayer *polygonLayer,
QgsRasterLayer *rasterLayer, QgsRasterLayer *rasterLayer,
const QString &attributePrefix = "", const QString &attributePrefix = QString(),
int rasterBand = 1, int rasterBand = 1,
QgsZonalStatistics::Statistics stats = QgsZonalStatistics::Statistics( QgsZonalStatistics::Count | QgsZonalStatistics::Sum | QgsZonalStatistics::Mean ) ); QgsZonalStatistics::Statistics stats = QgsZonalStatistics::Statistics( QgsZonalStatistics::Count | QgsZonalStatistics::Sum | QgsZonalStatistics::Mean ) );
%Docstring %Docstring
Expand All @@ -64,6 +64,7 @@ class QgsZonalStatistics
QFlags<QgsZonalStatistics::Statistic> operator|(QgsZonalStatistics::Statistic f1, QFlags<QgsZonalStatistics::Statistic> f2); QFlags<QgsZonalStatistics::Statistic> operator|(QgsZonalStatistics::Statistic f1, QFlags<QgsZonalStatistics::Statistic> f2);





/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
2 changes: 1 addition & 1 deletion python/core/composer/qgsatlascomposition.sip
Expand Up @@ -171,7 +171,7 @@ class QgsAtlasComposition : QObject
:rtype: str :rtype: str
%End %End


void setFileFormat( QString format ); void setFileFormat( const QString &format );
%Docstring %Docstring
Sets the atlas file format used for image exports. Sets the atlas file format used for image exports.
\param format set the file format extension \param format set the file format extension
Expand Down
1 change: 1 addition & 0 deletions python/core/diagram/qgshistogramdiagram.sip
Expand Up @@ -33,6 +33,7 @@ class QgsHistogramDiagram: QgsDiagram


virtual QString diagramName() const; virtual QString diagramName() const;



}; };




Expand Down
1 change: 1 addition & 0 deletions python/core/diagram/qgspiediagram.sip
Expand Up @@ -31,6 +31,7 @@ class QgsPieDiagram: QgsDiagram


virtual QString diagramName() const; virtual QString diagramName() const;



}; };


/************************************************************************ /************************************************************************
Expand Down
1 change: 1 addition & 0 deletions python/core/diagram/qgstextdiagram.sip
Expand Up @@ -44,6 +44,7 @@ class QgsTextDiagram: QgsDiagram


virtual QString diagramName() const; virtual QString diagramName() const;



}; };


/************************************************************************ /************************************************************************
Expand Down
1 change: 1 addition & 0 deletions python/core/geometry/qgsabstractgeometry.sip
Expand Up @@ -528,6 +528,7 @@ struct QgsVertexId
}; };





/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/core/geometry/qgscircularstring.sip
Expand Up @@ -136,6 +136,7 @@ class QgsCircularString: QgsCurve


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/core/geometry/qgscompoundcurve.sip
Expand Up @@ -152,6 +152,7 @@ Appends first point if not already closed.


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/core/geometry/qgscurvepolygon.sip
Expand Up @@ -199,6 +199,7 @@ Adds an interior ring to the geometry (takes ownership)


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/core/geometry/qgsgeometrycollection.sip
Expand Up @@ -190,6 +190,7 @@ Adds a geometry and takes ownership. Returns true in case of success.


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/core/geometry/qgslinestring.sip
Expand Up @@ -274,6 +274,7 @@ Closes the line string by appending the first point to the end of the line, if i


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/core/geometry/qgsmulticurve.sip
Expand Up @@ -57,6 +57,7 @@ Adds a geometry and takes ownership. Returns true in case of success


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/core/geometry/qgsmultilinestring.sip
Expand Up @@ -56,6 +56,7 @@ Adds a geometry and takes ownership. Returns true in case of success


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/core/geometry/qgsmultipoint.sip
Expand Up @@ -57,6 +57,7 @@ Adds a geometry and takes ownership. Returns true in case of success


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/core/geometry/qgsmultipolygon.sip
Expand Up @@ -59,6 +59,7 @@ Adds a geometry and takes ownership. Returns true in case of success


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/core/geometry/qgsmultisurface.sip
Expand Up @@ -51,6 +51,7 @@ Adds a geometry and takes ownership. Returns true in case of success


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/core/geometry/qgspoint.sip
Expand Up @@ -412,6 +412,7 @@ class QgsPoint: QgsAbstractGeometry


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/core/processing/qgsprocessingalgorithm.sip
Expand Up @@ -893,6 +893,7 @@ class QgsProcessingFeatureBasedAlgorithm : QgsProcessingAlgorithm







/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/core/processing/qgsprocessingparameters.sip
Expand Up @@ -2143,6 +2143,7 @@ class QgsProcessingParameterBand : QgsProcessingParameterDefinition







/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/core/qgsapplication.sip
Expand Up @@ -778,6 +778,7 @@ Returns path to the build output directory. Valid only when running from build d


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
4 changes: 2 additions & 2 deletions python/core/qgsdatadefinedsizelegend.sip
Expand Up @@ -86,11 +86,11 @@ Returns transformer for scaling of symbol sizes. Returns null if no transformer
:rtype: QgsSizeScaleTransformer :rtype: QgsSizeScaleTransformer
%End %End


void setClasses( const QList<QgsDataDefinedSizeLegend::SizeClass> &classes ); void setClasses( const QList< QgsDataDefinedSizeLegend::SizeClass > &classes );
%Docstring %Docstring
Sets list of classes: each class is a pair of symbol size (in units used by the symbol) and label Sets list of classes: each class is a pair of symbol size (in units used by the symbol) and label
%End %End
QList<QgsDataDefinedSizeLegend::SizeClass> classes() const; QList< QgsDataDefinedSizeLegend::SizeClass > classes() const;
%Docstring %Docstring
Returns list of classes: each class is a pair of symbol size (in units used by the symbol) and label Returns list of classes: each class is a pair of symbol size (in units used by the symbol) and label
:rtype: list of QgsDataDefinedSizeLegend.SizeClass :rtype: list of QgsDataDefinedSizeLegend.SizeClass
Expand Down
1 change: 1 addition & 0 deletions python/core/qgsfontutils.sip
Expand Up @@ -204,6 +204,7 @@ class QgsFontUtils
%End %End
}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/core/qgsmaprenderertask.sip
Expand Up @@ -80,6 +80,7 @@ class QgsMapRendererTask : QgsTask


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/core/qgsprojectversion.sip
Expand Up @@ -75,6 +75,7 @@ class QgsProjectVersion


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
2 changes: 1 addition & 1 deletion python/core/qgsrenderchecker.sip
Expand Up @@ -116,7 +116,7 @@ Get an md5 hash that uniquely identifies an image
:rtype: bool :rtype: bool
%End %End


bool compareImages( const QString &testName, unsigned int mismatchCount = 0, const QString &renderedImageFile = "" ); bool compareImages( const QString &testName, unsigned int mismatchCount = 0, const QString &renderedImageFile = QString() );
%Docstring %Docstring
Test using two arbitrary images (map renderer will not be used) Test using two arbitrary images (map renderer will not be used)
\param testName - to be used as the basis for writing a file to \param testName - to be used as the basis for writing a file to
Expand Down
2 changes: 1 addition & 1 deletion python/core/qgsrendercontext.sip
Expand Up @@ -189,7 +189,7 @@ Sets coordinate transformation.


void setRenderingStopped( bool stopped ); void setRenderingStopped( bool stopped );


void setDistanceArea( const QgsDistanceArea distanceArea ); void setDistanceArea( const QgsDistanceArea &distanceArea );
%Docstring %Docstring
A general purpose distance and area calculator, capable of performing ellipsoid based calculations. A general purpose distance and area calculator, capable of performing ellipsoid based calculations.
Will be used to convert meter distances to active MapUnit values for QgsUnitTypes.RenderMetersInMapUnits Will be used to convert meter distances to active MapUnit values for QgsUnitTypes.RenderMetersInMapUnits
Expand Down
1 change: 1 addition & 0 deletions python/core/qgsuserprofilemanager.sip
Expand Up @@ -204,6 +204,7 @@ class QgsUserProfileManager : QObject


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/core/qgsvectorlayer.sip
Expand Up @@ -2093,6 +2093,7 @@ Set the extent
QgsVectorLayer( const QgsVectorLayer &rhs ); QgsVectorLayer( const QgsVectorLayer &rhs );
}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/core/qgsvirtuallayerdefinition.sip
Expand Up @@ -212,6 +212,7 @@ Convenient method to test if the geometry is defined (not NoGeometry and not Unk


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/core/raster/qgsrasterchecker.sip
Expand Up @@ -40,6 +40,7 @@ class QgsRasterChecker
%End %End
}; // class QgsRasterChecker }; // class QgsRasterChecker



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
2 changes: 2 additions & 0 deletions python/core/raster/qgsrasterdataprovider.sip
Expand Up @@ -467,6 +467,8 @@ Copy member variables from other raster data provider. Useful for implementation




}; };


/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/core/raster/qgsrasterlayer.sip
Expand Up @@ -452,6 +452,7 @@ Time stamp of data source in the moment when data/metadata were loaded by provid


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
5 changes: 4 additions & 1 deletion python/core/raster/qgsrasterrenderer.sip
Expand Up @@ -25,7 +25,10 @@ class QgsRasterRenderer : QgsRasterInterface


static const QRgb NODATA_COLOR; static const QRgb NODATA_COLOR;


QgsRasterRenderer( QgsRasterInterface *input = 0, const QString &type = "" ); QgsRasterRenderer( QgsRasterInterface *input = 0, const QString &type = QString() );
%Docstring
Constructor for QgsRasterRenderer.
%End
virtual ~QgsRasterRenderer(); virtual ~QgsRasterRenderer();




Expand Down
1 change: 1 addition & 0 deletions python/core/symbology/qgscolorbrewerpalette.sip
Expand Up @@ -33,6 +33,7 @@ class QgsColorBrewerPalette
static const char *BREWER_STRING; static const char *BREWER_STRING;
}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/core/symbology/qgscptcityarchive.sip
Expand Up @@ -470,6 +470,7 @@ return index of a path


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
1 change: 1 addition & 0 deletions python/core/symbology/qgsellipsesymbollayer.sip
Expand Up @@ -181,6 +181,7 @@ class QgsEllipseSymbolLayer: QgsMarkerSymbolLayer







/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
3 changes: 2 additions & 1 deletion python/gui/qgsbusyindicatordialog.sip
Expand Up @@ -22,7 +22,7 @@ class QgsBusyIndicatorDialog : QDialog
%End %End
public: public:


QgsBusyIndicatorDialog( const QString &message = "", QWidget *parent /TransferThis/ = 0, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags ); QgsBusyIndicatorDialog( const QString &message = QString(), QWidget *parent /TransferThis/ = 0, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
%Docstring %Docstring
Constructor Constructor
Modal busy indicator dialog with no buttons. Modal busy indicator dialog with no buttons.
Expand All @@ -39,6 +39,7 @@ class QgsBusyIndicatorDialog : QDialog


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
3 changes: 2 additions & 1 deletion python/gui/qgscodeeditor.sip
Expand Up @@ -27,7 +27,7 @@ class QgsCodeEditor : QsciScintilla
%End %End
public: public:


QgsCodeEditor( QWidget *parent /TransferThis/ = 0, const QString &title = "", bool folding = false, bool margin = false ); QgsCodeEditor( QWidget *parent /TransferThis/ = 0, const QString &title = QString(), bool folding = false, bool margin = false );
%Docstring %Docstring
Construct a new code editor. Construct a new code editor.


Expand Down Expand Up @@ -90,6 +90,7 @@ class QgsCodeEditor : QsciScintilla


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
2 changes: 1 addition & 1 deletion python/gui/qgscolorbutton.sip
Expand Up @@ -35,7 +35,7 @@ class QgsColorButton : QToolButton
SignalOnly SignalOnly
}; };


QgsColorButton( QWidget *parent /TransferThis/ = 0, const QString &cdt = "", QgsColorSchemeRegistry *registry = 0 ); QgsColorButton( QWidget *parent /TransferThis/ = 0, const QString &cdt = QString(), QgsColorSchemeRegistry *registry = 0 );
%Docstring %Docstring
Construct a new color ramp button. Construct a new color ramp button.
Use ``parent`` to attach a parent QWidget to the dialog. Use ``parent`` to attach a parent QWidget to the dialog.
Expand Down
1 change: 1 addition & 0 deletions python/gui/qgsexpressionbuilderdialog.sip
Expand Up @@ -76,6 +76,7 @@ Sets geometry calculator used in distance/area calculations.


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down
3 changes: 2 additions & 1 deletion python/gui/qgsexpressionbuilderwidget.sip
Expand Up @@ -180,7 +180,7 @@ Sets the expression string for the widget
%End %End


void registerItem( const QString &group, const QString &label, const QString &expressionText, void registerItem( const QString &group, const QString &label, const QString &expressionText,
const QString &helpText = "", const QString &helpText = QString(),
QgsExpressionItem::ItemType type = QgsExpressionItem::ExpressionNode, QgsExpressionItem::ItemType type = QgsExpressionItem::ExpressionNode,
bool highlightedItem = false, int sortOrder = 1 ); bool highlightedItem = false, int sortOrder = 1 );
%Docstring %Docstring
Expand Down Expand Up @@ -299,6 +299,7 @@ Sets the expression string for the widget


}; };



/************************************************************************ /************************************************************************
* This file has been generated automatically from * * This file has been generated automatically from *
* * * *
Expand Down

0 comments on commit 154fd61

Please sign in to comment.