Skip to content

Commit fc704ef

Browse files
authoredApr 16, 2018
Merge pull request #6791 from m-kuhn/fixwarnings
Fix some build warnings
2 parents 0fbc396 + b1a38b6 commit fc704ef

File tree

6 files changed

+3
-6
lines changed

6 files changed

+3
-6
lines changed
 

‎python/gui/editorwidgets/core/qgseditorwidgetautoconf.sip.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Base class for plugins allowing to pick automatically a widget type for editing
2020
#include "qgseditorwidgetautoconf.h"
2121
%End
2222
public:
23+
virtual ~QgsEditorWidgetAutoConfPlugin();
2324

2425
virtual QgsEditorWidgetSetup editorWidgetSetup( const QgsVectorLayer *vl, const QString &fieldName, int &score /Out/ ) const = 0;
2526
%Docstring

‎src/core/qgserror.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ class CORE_EXPORT QgsErrorMessage
6969
QString mFile;
7070
QString mFunction;
7171
int mLine = 0;
72-
73-
//! Message format
74-
Format mFormat = Text;
7572
};
7673

7774
/**

‎src/core/raster/qgsrasterfilewriter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,6 @@ QgsRasterFileWriter::WriterError QgsRasterFileWriter::writeImageRaster( QgsRaste
497497
void *greenData = qgsMalloc( mMaxTileWidth * mMaxTileHeight );
498498
void *blueData = qgsMalloc( mMaxTileWidth * mMaxTileHeight );
499499
void *alphaData = qgsMalloc( mMaxTileWidth * mMaxTileHeight );
500-
QgsRectangle mapRect;
501500
int iterLeft = 0, iterTop = 0, iterCols = 0, iterRows = 0;
502501
int fileIndex = 0;
503502

‎src/core/symbology/qgssymbollayerutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ bool QgsSymbolLayerUtils::convertPolygonSymbolizerToPointMarker( QDomElement &el
14771477
int markIndex = -1;
14781478
QColor fillColor, strokeColor;
14791479
double strokeWidth = 1.0, size = 0.0, angle = 0.0;
1480-
QPointF anchor, offset;
1480+
QPointF offset;
14811481

14821482
// Fill element can contain a GraphicFill element
14831483
QDomElement graphicFillElem = fillElem.firstChildElement( QStringLiteral( "GraphicFill" ) );

‎src/gui/editorwidgets/core/qgseditorwidgetautoconf.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class QgsEditorWidgetSetup;
3232
class GUI_EXPORT QgsEditorWidgetAutoConfPlugin
3333
{
3434
public:
35+
virtual ~QgsEditorWidgetAutoConfPlugin() = default;
3536

3637
/**
3738
* Typical scores are:

‎src/providers/gpx/qgsgpxprovider.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ bool QgsGPXProvider::addFeature( QgsFeature &f, Flags )
216216
bool success = false;
217217
QgsGpsObject *obj = nullptr;
218218
QgsAttributes attrs = f.attributes();
219-
QgsAttributeMap::const_iterator it;
220219

221220
// is it a waypoint?
222221
if ( mFeatureType == WaypointType && geo && wkbType == QgsWkbTypes::Point )

0 commit comments

Comments
 (0)
Please sign in to comment.