Skip to content

Commit

Permalink
Merge pull request #6791 from m-kuhn/fixwarnings
Browse files Browse the repository at this point in the history
Fix some build warnings
  • Loading branch information
m-kuhn committed Apr 16, 2018
2 parents 0fbc396 + b1a38b6 commit fc704ef
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 6 deletions.
Expand Up @@ -20,6 +20,7 @@ Base class for plugins allowing to pick automatically a widget type for editing
#include "qgseditorwidgetautoconf.h"
%End
public:
virtual ~QgsEditorWidgetAutoConfPlugin();

virtual QgsEditorWidgetSetup editorWidgetSetup( const QgsVectorLayer *vl, const QString &fieldName, int &score /Out/ ) const = 0;
%Docstring
Expand Down
3 changes: 0 additions & 3 deletions src/core/qgserror.h
Expand Up @@ -69,9 +69,6 @@ class CORE_EXPORT QgsErrorMessage
QString mFile;
QString mFunction;
int mLine = 0;

//! Message format
Format mFormat = Text;
};

/**
Expand Down
1 change: 0 additions & 1 deletion src/core/raster/qgsrasterfilewriter.cpp
Expand Up @@ -497,7 +497,6 @@ QgsRasterFileWriter::WriterError QgsRasterFileWriter::writeImageRaster( QgsRaste
void *greenData = qgsMalloc( mMaxTileWidth * mMaxTileHeight );
void *blueData = qgsMalloc( mMaxTileWidth * mMaxTileHeight );
void *alphaData = qgsMalloc( mMaxTileWidth * mMaxTileHeight );
QgsRectangle mapRect;
int iterLeft = 0, iterTop = 0, iterCols = 0, iterRows = 0;
int fileIndex = 0;

Expand Down
2 changes: 1 addition & 1 deletion src/core/symbology/qgssymbollayerutils.cpp
Expand Up @@ -1477,7 +1477,7 @@ bool QgsSymbolLayerUtils::convertPolygonSymbolizerToPointMarker( QDomElement &el
int markIndex = -1;
QColor fillColor, strokeColor;
double strokeWidth = 1.0, size = 0.0, angle = 0.0;
QPointF anchor, offset;
QPointF offset;

// Fill element can contain a GraphicFill element
QDomElement graphicFillElem = fillElem.firstChildElement( QStringLiteral( "GraphicFill" ) );
Expand Down
1 change: 1 addition & 0 deletions src/gui/editorwidgets/core/qgseditorwidgetautoconf.h
Expand Up @@ -32,6 +32,7 @@ class QgsEditorWidgetSetup;
class GUI_EXPORT QgsEditorWidgetAutoConfPlugin
{
public:
virtual ~QgsEditorWidgetAutoConfPlugin() = default;

/**
* Typical scores are:
Expand Down
1 change: 0 additions & 1 deletion src/providers/gpx/qgsgpxprovider.cpp
Expand Up @@ -216,7 +216,6 @@ bool QgsGPXProvider::addFeature( QgsFeature &f, Flags )
bool success = false;
QgsGpsObject *obj = nullptr;
QgsAttributes attrs = f.attributes();
QgsAttributeMap::const_iterator it;

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

0 comments on commit fc704ef

Please sign in to comment.