Skip to content

Commit

Permalink
cppcheck fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed May 16, 2016
1 parent ee533a7 commit b514f52
Show file tree
Hide file tree
Showing 43 changed files with 63 additions and 77 deletions.
4 changes: 2 additions & 2 deletions src/analysis/interpolation/DualEdgeTriangulation.cc
Expand Up @@ -462,12 +462,12 @@ int DualEdgeTriangulation::baseEdgeOfPoint( int point )
return actedge; return actedge;
} }


else if ( leftofnumber <= 0 ) else if ( leftofnumber <= 0.0 )
{ {
actedge = mHalfEdge[actedge]->getNext(); actedge = mHalfEdge[actedge]->getNext();
} }


else if ( leftofnumber > 0 ) else
{ {
actedge = mHalfEdge[mHalfEdge[mHalfEdge[mHalfEdge[actedge]->getDual()]->getNext()]->getNext()]->getDual(); actedge = mHalfEdge[mHalfEdge[mHalfEdge[mHalfEdge[actedge]->getDual()]->getNext()]->getNext()]->getDual();
} }
Expand Down
3 changes: 1 addition & 2 deletions src/app/ogr/qgsvectorlayersaveasdialog.cpp
Expand Up @@ -248,9 +248,8 @@ void QgsVectorLayerSaveAsDialog::on_mFormatComboBox_currentIndexChanged( int idx
bool foundFieldThatCanBeExportedAsDisplayedValue = false; bool foundFieldThatCanBeExportedAsDisplayedValue = false;
for ( int i = 0; i < mLayer->fields().size(); ++i ) for ( int i = 0; i < mLayer->fields().size(); ++i )
{ {
QgsEditorWidgetFactory *factory;
if ( mLayer->editFormConfig()->widgetType( i ) != "TextEdit" && if ( mLayer->editFormConfig()->widgetType( i ) != "TextEdit" &&
( factory = QgsEditorWidgetRegistry::instance()->factory( mLayer->editFormConfig()->widgetType( i ) ) ) ) QgsEditorWidgetRegistry::instance()->factory( mLayer->editFormConfig()->widgetType( i ) ) )
{ {
foundFieldThatCanBeExportedAsDisplayedValue = true; foundFieldThatCanBeExportedAsDisplayedValue = true;
break; break;
Expand Down
3 changes: 1 addition & 2 deletions src/app/qgsmaptoolfillring.cpp
Expand Up @@ -141,7 +141,6 @@ void QgsMapToolFillRing::cadCanvasReleaseEvent( QgsMapMouseEvent * e )
QgsFeatureIterator fit = vlayer->getFeatures( QgsFeatureRequest().setFilterFid( modifiedFid ) ); QgsFeatureIterator fit = vlayer->getFeatures( QgsFeatureRequest().setFilterFid( modifiedFid ) );


QgsFeature f; QgsFeature f;
bool res = false;
if ( fit.nextFeature( f ) ) if ( fit.nextFeature( f ) )
{ {
//create QgsFeature with wkb representation //create QgsFeature with wkb representation
Expand All @@ -150,6 +149,7 @@ void QgsMapToolFillRing::cadCanvasReleaseEvent( QgsMapMouseEvent * e )
ft->setGeometry( QgsGeometry::fromPolygon( QgsPolygon() << pointList.toVector() ) ); ft->setGeometry( QgsGeometry::fromPolygon( QgsPolygon() << pointList.toVector() ) );
ft->setAttributes( f.attributes() ); ft->setAttributes( f.attributes() );


bool res = false;
if ( QApplication::keyboardModifiers() == Qt::ControlModifier ) if ( QApplication::keyboardModifiers() == Qt::ControlModifier )
{ {
res = vlayer->addFeature( *ft ); res = vlayer->addFeature( *ft );
Expand All @@ -170,7 +170,6 @@ void QgsMapToolFillRing::cadCanvasReleaseEvent( QgsMapMouseEvent * e )
delete ft; delete ft;
vlayer->destroyEditCommand(); vlayer->destroyEditCommand();
} }
res = false;
} }
} }
stopCapturing(); stopCapturing();
Expand Down
2 changes: 1 addition & 1 deletion src/core/composer/qgscomposermap.cpp
Expand Up @@ -836,7 +836,7 @@ void QgsComposerMap::setNewAtlasFeatureExtent( const QgsRectangle& extent )
newExtent.setYMinimum( extent.yMinimum() - deltaHeight / 2 ); newExtent.setYMinimum( extent.yMinimum() - deltaHeight / 2 );
newExtent.setYMaximum( extent.yMaximum() + deltaHeight / 2 ); newExtent.setYMaximum( extent.yMaximum() + deltaHeight / 2 );
} }
else if ( currentWidthHeightRatio >= newWidthHeightRatio ) else
{ {
//enlarge width of new extent, ensuring the map center stays the same //enlarge width of new extent, ensuring the map center stays the same
double newWidth = currentWidthHeightRatio * newExtent.height(); double newWidth = currentWidthHeightRatio * newExtent.height();
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgsinternalgeometryengine.h
Expand Up @@ -35,7 +35,7 @@ class QgsInternalGeometryEngine
* for the whole lifetime of this object. * for the whole lifetime of this object.
* @param geometry * @param geometry
*/ */
QgsInternalGeometryEngine( const QgsGeometry& geometry ); explicit QgsInternalGeometryEngine( const QgsGeometry& geometry );


/** /**
* Will extrude a line or (segmentized) curve by a given offset and return a polygon * Will extrude a line or (segmentized) curve by a given offset and return a polygon
Expand Down
2 changes: 1 addition & 1 deletion src/core/gps/qextserialport/qextserialport.h
Expand Up @@ -189,7 +189,7 @@ class QextSerialPort: public QIODevice
EventDriven EventDriven
}; };


QextSerialPort(QueryMode mode = EventDriven); explicit QextSerialPort(QueryMode mode = EventDriven);
QextSerialPort(const QString & name, QueryMode mode = EventDriven); QextSerialPort(const QString & name, QueryMode mode = EventDriven);
QextSerialPort(PortSettings const& s, QueryMode mode = EventDriven); QextSerialPort(PortSettings const& s, QueryMode mode = EventDriven);
QextSerialPort(const QString & name, PortSettings const& s, QueryMode mode = EventDriven); QextSerialPort(const QString & name, PortSettings const& s, QueryMode mode = EventDriven);
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgis.h
Expand Up @@ -296,7 +296,7 @@ template<class Object> class QgsSignalBlocker
/** Constructor for QgsSignalBlocker /** Constructor for QgsSignalBlocker
* @param object QObject to block signals from * @param object QObject to block signals from
*/ */
QgsSignalBlocker( Object* object ) explicit QgsSignalBlocker( Object* object )
: mObject( object ) : mObject( object )
, mPreviousState( object->blockSignals( true ) ) , mPreviousState( object->blockSignals( true ) )
{} {}
Expand Down
1 change: 1 addition & 0 deletions src/core/qgsapplication.h
Expand Up @@ -349,6 +349,7 @@ class CORE_EXPORT QgsApplication : public QApplication
/** Get maximum concurrent thread count /** Get maximum concurrent thread count
* @note added in 2.4 */ * @note added in 2.4 */
static int maxThreads() { return ABISYM( mMaxThreads ); } static int maxThreads() { return ABISYM( mMaxThreads ); }

/** Set maximum concurrent thread count /** Set maximum concurrent thread count
* @note must be between 1 and \#cores, -1 means use all available cores * @note must be between 1 and \#cores, -1 means use all available cores
* @note added in 2.4 */ * @note added in 2.4 */
Expand Down
1 change: 1 addition & 0 deletions src/core/qgsexpressionprivate.h
Expand Up @@ -47,6 +47,7 @@ class QgsExpressionPrivate
: ref( 1 ) : ref( 1 )
, mRootNode( other.mRootNode ? other.mRootNode->clone() : nullptr ) , mRootNode( other.mRootNode ? other.mRootNode->clone() : nullptr )
, mParserErrorString( other.mParserErrorString ) , mParserErrorString( other.mParserErrorString )
, mEvalErrorString( other.mEvalErrorString )
, mRowNumber( 0 ) , mRowNumber( 0 )
, mScale( other.mScale ) , mScale( other.mScale )
, mExp( other.mExp ) , mExp( other.mExp )
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsexpressionsorter.h
Expand Up @@ -23,7 +23,7 @@
class QgsExpressionSorter class QgsExpressionSorter
{ {
public: public:
QgsExpressionSorter( const QList<QgsFeatureRequest::OrderByClause>& preparedOrderBys ) explicit QgsExpressionSorter( const QList<QgsFeatureRequest::OrderByClause>& preparedOrderBys )
: mPreparedOrderBys( preparedOrderBys ) : mPreparedOrderBys( preparedOrderBys )
{} {}


Expand Down
2 changes: 1 addition & 1 deletion src/core/qgslabelingenginev2.cpp
Expand Up @@ -37,7 +37,7 @@ class QgsLabelSorter
{ {
public: public:


QgsLabelSorter( const QgsMapSettings& mapSettings ) explicit QgsLabelSorter( const QgsMapSettings& mapSettings )
: mMapSettings( mapSettings ) : mMapSettings( mapSettings )
{} {}


Expand Down
2 changes: 1 addition & 1 deletion src/core/qgslayerdefinition.cpp
Expand Up @@ -284,7 +284,7 @@ void QgsLayerDefinition::DependencySorter::init( const QDomDocument& doc )
} }
else else
{ {
it++; ++it;
} }
} }
} }
Expand Down
4 changes: 2 additions & 2 deletions src/core/qgsnetworkdiskcache.h
Expand Up @@ -81,13 +81,13 @@ class QgsNetworkDiskCache : public QNetworkDiskCache
virtual qint64 expire() override; virtual qint64 expire() override;


private: private:
QgsNetworkDiskCache( QObject *parent ); explicit QgsNetworkDiskCache( QObject *parent );
Q_DISABLE_COPY( QgsNetworkDiskCache ) Q_DISABLE_COPY( QgsNetworkDiskCache )


class ExpirableNetworkDiskCache : public QNetworkDiskCache class ExpirableNetworkDiskCache : public QNetworkDiskCache
{ {
public: public:
ExpirableNetworkDiskCache( QObject *parent = 0 ) : QNetworkDiskCache( parent ) {} explicit ExpirableNetworkDiskCache( QObject *parent = 0 ) : QNetworkDiskCache( parent ) {}
qint64 runExpire() { return QNetworkDiskCache::expire(); } qint64 runExpire() { return QNetworkDiskCache::expire(); }
}; };


Expand Down
2 changes: 1 addition & 1 deletion src/core/qgspallabeling.cpp
Expand Up @@ -4758,7 +4758,7 @@ void QgsPalLabeling::drawLabelBackground( QgsRenderContext& context,
// add buffer to greatest dimension of label // add buffer to greatest dimension of label
if ( labelWidth >= labelHeight ) if ( labelWidth >= labelHeight )
sizeOut = labelWidth; sizeOut = labelWidth;
else if ( labelHeight > labelWidth ) else
sizeOut = labelHeight; sizeOut = labelHeight;


// label size in map units, convert to shapeSizeUnits, if different // label size in map units, convert to shapeSizeUnits, if different
Expand Down
19 changes: 7 additions & 12 deletions src/core/qgspointlocator.cpp
Expand Up @@ -30,20 +30,15 @@ using namespace SpatialIndex;


static SpatialIndex::Point point2point( const QgsPoint& point ) static SpatialIndex::Point point2point( const QgsPoint& point )
{ {
double plow[2]; double plow[2] = { point.x(), point.y() };
plow[0] = point.x();
plow[1] = point.y();
return Point( plow, 2 ); return Point( plow, 2 );
} }




static SpatialIndex::Region rect2region( const QgsRectangle& rect ) static SpatialIndex::Region rect2region( const QgsRectangle& rect )
{ {
double pLow[2], pHigh[2]; double pLow[2] = { rect.xMinimum(), rect.yMinimum() };
pLow[0] = rect.xMinimum(); double pHigh[2] = { rect.xMaximum(), rect.yMaximum() };
pLow[1] = rect.yMinimum();
pHigh[0] = rect.xMaximum();
pHigh[1] = rect.yMaximum();
return SpatialIndex::Region( pLow, pHigh, 2 ); return SpatialIndex::Region( pLow, pHigh, 2 );
} }


Expand Down Expand Up @@ -357,7 +352,7 @@ static QgsPointLocator::MatchList _geometrySegmentsInRect( QgsGeometry *geom, co
double prevx = 0.0, prevy = 0.0; double prevx = 0.0, prevy = 0.0;
for ( int index = 0; index < nPoints; ++index ) for ( int index = 0; index < nPoints; ++index )
{ {
double thisx, thisy; double thisx = 0.0, thisy = 0.0;
wkbPtr >> thisx >> thisy; wkbPtr >> thisx >> thisy;
if ( hasZValue ) if ( hasZValue )
wkbPtr += sizeof( double ); wkbPtr += sizeof( double );
Expand Down Expand Up @@ -396,7 +391,7 @@ static QgsPointLocator::MatchList _geometrySegmentsInRect( QgsGeometry *geom, co
double prevx = 0.0, prevy = 0.0; double prevx = 0.0, prevy = 0.0;
for ( int pointnr = 0; pointnr < nPoints; ++pointnr ) for ( int pointnr = 0; pointnr < nPoints; ++pointnr )
{ {
double thisx, thisy; double thisx = 0.0, thisy = 0.0;
wkbPtr >> thisx >> thisy; wkbPtr >> thisx >> thisy;
if ( hasZValue ) if ( hasZValue )
wkbPtr += sizeof( double ); wkbPtr += sizeof( double );
Expand Down Expand Up @@ -437,7 +432,7 @@ static QgsPointLocator::MatchList _geometrySegmentsInRect( QgsGeometry *geom, co
double prevx = 0.0, prevy = 0.0; double prevx = 0.0, prevy = 0.0;
for ( int pointnr = 0; pointnr < nPoints; ++pointnr )//loop over points in a ring for ( int pointnr = 0; pointnr < nPoints; ++pointnr )//loop over points in a ring
{ {
double thisx, thisy; double thisx = 0.0, thisy = 0.0;
wkbPtr >> thisx >> thisy; wkbPtr >> thisx >> thisy;
if ( hasZValue ) if ( hasZValue )
wkbPtr += sizeof( double ); wkbPtr += sizeof( double );
Expand Down Expand Up @@ -482,7 +477,7 @@ static QgsPointLocator::MatchList _geometrySegmentsInRect( QgsGeometry *geom, co
double prevx = 0.0, prevy = 0.0; double prevx = 0.0, prevy = 0.0;
for ( int pointnr = 0; pointnr < nPoints; ++pointnr ) for ( int pointnr = 0; pointnr < nPoints; ++pointnr )
{ {
double thisx, thisy; double thisx = 0.0, thisy = 0.0;
wkbPtr >> thisx >> thisy; wkbPtr >> thisx >> thisy;
if ( hasZValue ) if ( hasZValue )
wkbPtr += sizeof( double ); wkbPtr += sizeof( double );
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsproject.cpp
Expand Up @@ -326,7 +326,7 @@ struct QgsProject::Imp
QFile file; // current physical project file QFile file; // current physical project file
QgsPropertyKey properties_; // property hierarchy QgsPropertyKey properties_; // property hierarchy
QString title; // project title QString title; // project title
bool autoTransaction; // transaction grouped editing bool autoTransaction; // transaction grouped editing
bool dirty; // project has been modified since it has been read or saved bool dirty; // project has been modified since it has been read or saved


Imp() Imp()
Expand Down
1 change: 0 additions & 1 deletion src/core/qgsprojectproperty.h
Expand Up @@ -245,7 +245,6 @@ class CORE_EXPORT QgsPropertyKey : public QgsProperty
return setValue( name(), value ); return setValue( name(), value );
} }



void dump( int tabs = 0 ) const override; void dump( int tabs = 0 ) const override;


bool readXML( QDomNode & keyNode ) override; bool readXML( QDomNode & keyNode ) override;
Expand Down
11 changes: 3 additions & 8 deletions src/core/qgsspatialindex.cpp
Expand Up @@ -244,11 +244,8 @@ QgsSpatialIndex& QgsSpatialIndex::operator=( const QgsSpatialIndex & other )


SpatialIndex::Region QgsSpatialIndex::rectToRegion( const QgsRectangle& rect ) SpatialIndex::Region QgsSpatialIndex::rectToRegion( const QgsRectangle& rect )
{ {
double pt1[2], pt2[2]; double pt1[2] = { rect.xMinimum(), rect.yMinimum() },
pt1[0] = rect.xMinimum(); pt2[2] = { rect.xMaximum(), rect.yMaximum() };
pt1[1] = rect.yMinimum();
pt2[0] = rect.xMaximum();
pt2[1] = rect.yMaximum();
return SpatialIndex::Region( pt1, pt2, 2 ); return SpatialIndex::Region( pt1, pt2, 2 );
} }


Expand Down Expand Up @@ -324,9 +321,7 @@ QList<QgsFeatureId> QgsSpatialIndex::nearestNeighbor( const QgsPoint& point, int
QList<QgsFeatureId> list; QList<QgsFeatureId> list;
QgisVisitor visitor( list ); QgisVisitor visitor( list );


double pt[2]; double pt[2] = { point.x(), point.y() };
pt[0] = point.x();
pt[1] = point.y();
Point p( pt, 2 ); Point p( pt, 2 );


d->mRTree->nearestNeighborQuery( neighbors, p, visitor ); d->mRTree->nearestNeighborQuery( neighbors, p, visitor );
Expand Down
4 changes: 3 additions & 1 deletion src/core/qgstracer.cpp
Expand Up @@ -87,6 +87,8 @@ double closestSegment( const QgsPolyline& pl, const QgsPoint& pt, int& vertexAft
/** Simple graph structure for shortest path search */ /** Simple graph structure for shortest path search */
struct QgsTracerGraph struct QgsTracerGraph
{ {
QgsTracerGraph() : joinedVertices(0) {}

struct E // bidirectional edge struct E // bidirectional edge
{ {
//! vertices that the edge connects //! vertices that the edge connects
Expand Down Expand Up @@ -120,7 +122,7 @@ struct QgsTracerGraph


QgsTracerGraph* makeGraph( const QVector<QgsPolyline>& edges ) QgsTracerGraph* makeGraph( const QVector<QgsPolyline>& edges )
{ {
QgsTracerGraph* g = new QgsTracerGraph; QgsTracerGraph *g = new QgsTracerGraph();
g->joinedVertices = 0; g->joinedVertices = 0;
QHash<QgsPoint, int> point2vertex; QHash<QgsPoint, int> point2vertex;


Expand Down
5 changes: 1 addition & 4 deletions src/core/qgsvectorfilewriter.cpp
Expand Up @@ -2516,9 +2516,7 @@ QMap<QString, QString> QgsVectorFileWriter::ogrDriverList()
// http://lists.osgeo.org/pipermail/gdal-dev/2012-November/034580.html // http://lists.osgeo.org/pipermail/gdal-dev/2012-November/034580.html
// -> test if creation failes // -> test if creation failes
QString option = "SPATIALITE=YES"; QString option = "SPATIALITE=YES";
char **options = new char *[2]; char *options[2] = { CPLStrdup( option.toLocal8Bit().constData() ), nullptr };
options[0] = CPLStrdup( option.toLocal8Bit().constData() );
options[1] = nullptr;
OGRSFDriverH poDriver; OGRSFDriverH poDriver;
QgsApplication::registerOgrDrivers(); QgsApplication::registerOgrDrivers();
poDriver = OGRGetDriverByName( drvName.toLocal8Bit().constData() ); poDriver = OGRGetDriverByName( drvName.toLocal8Bit().constData() );
Expand All @@ -2533,7 +2531,6 @@ QMap<QString, QString> QgsVectorFileWriter::ogrDriverList()
} }
} }
CPLFree( options[0] ); CPLFree( options[0] );
delete [] options;
} }
else if ( drvName == "ESRI Shapefile" ) else if ( drvName == "ESRI Shapefile" )
{ {
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.cpp
Expand Up @@ -706,7 +706,7 @@ class QgsVectorLayerInterruptionCheckerDuringCountSymbolFeatures: public QgsInte
public: public:


/** Constructor */ /** Constructor */
QgsVectorLayerInterruptionCheckerDuringCountSymbolFeatures( QProgressDialog* dialog ) explicit QgsVectorLayerInterruptionCheckerDuringCountSymbolFeatures( QProgressDialog* dialog )
: mDialog( dialog ) : mDialog( dialog )
{ {
} }
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayerrenderer.h
Expand Up @@ -51,7 +51,7 @@ class QgsVectorLayerRendererInterruptionChecker: public QgsInterruptionChecker
{ {
public: public:
/** Constructor */ /** Constructor */
QgsVectorLayerRendererInterruptionChecker( const QgsRenderContext& context ); explicit QgsVectorLayerRendererInterruptionChecker( const QgsRenderContext& context );
bool mustStop() const override; bool mustStop() const override;
private: private:
const QgsRenderContext& mContext; const QgsRenderContext& mContext;
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgscodeeditorsql.cpp
Expand Up @@ -50,7 +50,7 @@ class QgsCaseInsensitiveLexerSQL: public QsciLexerSQL
{ {
public: public:
//! constructor //! constructor
QgsCaseInsensitiveLexerSQL( QObject *parent = 0 ) : QsciLexerSQL( parent ) {} explicit QgsCaseInsensitiveLexerSQL( QObject *parent = 0 ) : QsciLexerSQL( parent ) {}


bool caseSensitive() const override { return false; } bool caseSensitive() const override { return false; }
}; };
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgscolorwidgets.cpp
Expand Up @@ -1073,7 +1073,7 @@ void QgsColorRampWidget::paintEvent( QPaintEvent *event )
} }
} }
} }
else if ( mComponent == QgsColorWidget::Alpha ) else
{ {
//alpha ramps are drawn differently //alpha ramps are drawn differently
//start with the checkboard pattern //start with the checkboard pattern
Expand Down
1 change: 0 additions & 1 deletion src/providers/db2/qgsdb2featureiterator.cpp
Expand Up @@ -196,7 +196,6 @@ void QgsDb2FeatureIterator::BuildStatement( const QgsFeatureRequest& request )
mStatement += " WHERE (" + compiler.result() + ')'; mStatement += " WHERE (" + compiler.result() + ')';
else else
mStatement += " AND (" + compiler.result() + ')'; mStatement += " AND (" + compiler.result() + ')';
filterAdded = true;


//if only partial success when compiling expression, we need to double-check results using QGIS' expressions //if only partial success when compiling expression, we need to double-check results using QGIS' expressions
mExpressionCompiled = ( result == QgsSqlExpressionCompiler::Complete ); mExpressionCompiled = ( result == QgsSqlExpressionCompiler::Complete );
Expand Down
2 changes: 1 addition & 1 deletion src/providers/db2/qgsdb2geometrycolumns.cpp
Expand Up @@ -27,12 +27,12 @@ QgsDb2GeometryColumns::QgsDb2GeometryColumns( const QSqlDatabase db )
{ {
QgsDebugMsg( "constructing" ); QgsDebugMsg( "constructing" );
} }

QgsDb2GeometryColumns::~QgsDb2GeometryColumns( ) QgsDb2GeometryColumns::~QgsDb2GeometryColumns( )
{ {
mQuery.clear(); mQuery.clear();
} }



int QgsDb2GeometryColumns::open() int QgsDb2GeometryColumns::open()
{ {
return open( QString(), QString() ); return open( QString(), QString() );
Expand Down
4 changes: 2 additions & 2 deletions src/providers/db2/qgsdb2geometrycolumns.h
Expand Up @@ -31,7 +31,7 @@ static const int ENV_LUW = 1, ENV_ZOS = 2;
class QgsDb2GeometryColumns class QgsDb2GeometryColumns
{ {
public: public:
QgsDb2GeometryColumns( const QSqlDatabase db ); explicit QgsDb2GeometryColumns( const QSqlDatabase db );


~QgsDb2GeometryColumns(); ~QgsDb2GeometryColumns();


Expand All @@ -50,4 +50,4 @@ class QgsDb2GeometryColumns


}; };


#endif #endif
Expand Up @@ -27,6 +27,7 @@


QgsDelimitedTextFeatureIterator::QgsDelimitedTextFeatureIterator( QgsDelimitedTextFeatureSource* source, bool ownSource, const QgsFeatureRequest& request ) QgsDelimitedTextFeatureIterator::QgsDelimitedTextFeatureIterator( QgsDelimitedTextFeatureSource* source, bool ownSource, const QgsFeatureRequest& request )
: QgsAbstractFeatureIteratorFromSource<QgsDelimitedTextFeatureSource>( source, ownSource, request ) : QgsAbstractFeatureIteratorFromSource<QgsDelimitedTextFeatureSource>( source, ownSource, request )
, mNextId( 0 )
, mTestGeometryExact( false ) , mTestGeometryExact( false )
{ {


Expand Down
1 change: 1 addition & 0 deletions src/providers/gpx/qgsgpxfeatureiterator.cpp
Expand Up @@ -27,6 +27,7 @@


QgsGPXFeatureIterator::QgsGPXFeatureIterator( QgsGPXFeatureSource* source, bool ownSource, const QgsFeatureRequest& request ) QgsGPXFeatureIterator::QgsGPXFeatureIterator( QgsGPXFeatureSource* source, bool ownSource, const QgsFeatureRequest& request )
: QgsAbstractFeatureIteratorFromSource<QgsGPXFeatureSource>( source, ownSource, request ) : QgsAbstractFeatureIteratorFromSource<QgsGPXFeatureSource>( source, ownSource, request )
, mFetchedFid( false )
{ {
rewind(); rewind();
} }
Expand Down

0 comments on commit b514f52

Please sign in to comment.