Skip to content

Commit 84fe676

Browse files
committedJan 15, 2014
Fix warnings
1 parent 8fb87f1 commit 84fe676

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed
 

‎src/app/qgsvectorlayerproperties.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,6 @@ void QgsVectorLayerProperties::on_mSimplifyDrawingGroupBox_toggled( bool checked
11061106
}
11071107
else
11081108
{
1109-
mSimplifyDrawingAtProvider->setEnabled( mSimplifyDrawingGroupBox->isChecked() );
1109+
mSimplifyDrawingAtProvider->setEnabled( checked );
11101110
}
11111111
}

‎src/core/qgsfeatureiterator.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ bool QgsAbstractFeatureIterator::prepareSimplification( const QgsSimplifyMethod&
121121

122122
bool QgsAbstractFeatureIterator::providerCanSimplify( QgsSimplifyMethod::MethodType methodType ) const
123123
{
124+
Q_UNUSED( methodType )
124125
return false;
125126
}
126127

‎src/providers/ogr/qgsogrgeometrysimplifier.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ OGRRawPoint* QgsOgrMapToPixelSimplifier::mallocPoints( int numPoints )
9494
//! Simplifies the OGR-geometry (Removing duplicated points) when is applied the specified map2pixel context
9595
bool QgsOgrMapToPixelSimplifier::simplifyOgrGeometry( QGis::GeometryType geometryType, const QgsRectangle& envelope, double* xptr, int xStride, double* yptr, int yStride, int pointCount, int& pointSimplifiedCount )
9696
{
97+
Q_UNUSED( envelope )
9798
bool canbeGeneralizable = ( mSimplifyFlags & QgsMapToPixelSimplifier::SimplifyGeometry );
9899

99100
pointSimplifiedCount = pointCount;

3 commit comments

Comments
 (3)

ahuarte47 commented on Jan 15, 2014

@ahuarte47
Contributor

Thanks @Matthias-Kuhn, I dont know how trace this UNUSED warnings

m-kuhn commented on Jan 15, 2014

@m-kuhn
MemberAuthor

It's a gcc thing. I don't know if there's a possibility to track that with VS. But if not, there's no reason to worry.

ahuarte47 commented on Jan 15, 2014

@ahuarte47
Contributor

Thanks, I study it

Please sign in to comment.