Skip to content

Commit 2d8c8c8

Browse files
committed
fix warnings
1 parent 42edad5 commit 2d8c8c8

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/app/qgisapp.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4329,7 +4329,7 @@ bool QgisApp::toggleEditing( QgsMapLayer *layer, bool allowCancel )
43294329

43304330
if ( !vlayer->isEditable() && !vlayer->isReadOnly() )
43314331
{
4332-
if ( vlayer->dataProvider()->capabilities() & QgsVectorDataProvider::EditingCapabilities == 0 )
4332+
if ( !(vlayer->dataProvider()->capabilities() & QgsVectorDataProvider::EditingCapabilities ) )
43334333
{
43344334
QMessageBox::information( 0, tr( "Start editing failed" ), tr( "Provider cannot be opened for editing" ) );
43354335
return false;

src/core/symbology-ng/qgsrulebasedrendererv2.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,9 @@ void QgsRuleBasedRendererV2::renderFeature( QgsFeature& feature,
370370
bool selected,
371371
bool drawVertexMarker )
372372
{
373+
Q_UNUSED( layer );
374+
Q_UNUSED( selected );
375+
Q_UNUSED( drawVertexMarker );
373376

374377
// TODO: selected features, vertex markers
375378

src/gui/symbology-ng/qgsrulebasedrendererv2widget.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,8 @@ QMimeData *QgsRuleBasedRendererV2Model::mimeData( const QModelIndexList &indexes
654654
bool QgsRuleBasedRendererV2Model::dropMimeData( const QMimeData *data,
655655
Qt::DropAction action, int row, int column, const QModelIndex &parent )
656656
{
657+
Q_UNUSED( column );
658+
657659
if ( action == Qt::IgnoreAction )
658660
return true;
659661

0 commit comments

Comments
 (0)