Skip to content
Permalink
Browse files

fix warnings

  • Loading branch information
jef-n committed Jan 24, 2012
1 parent 42edad5 commit 2d8c8c8cee24dc76b3d7acfae96b4281912336d0
@@ -4329,7 +4329,7 @@ bool QgisApp::toggleEditing( QgsMapLayer *layer, bool allowCancel )

if ( !vlayer->isEditable() && !vlayer->isReadOnly() )
{
if ( vlayer->dataProvider()->capabilities() & QgsVectorDataProvider::EditingCapabilities == 0 )
if ( !(vlayer->dataProvider()->capabilities() & QgsVectorDataProvider::EditingCapabilities ) )
{
QMessageBox::information( 0, tr( "Start editing failed" ), tr( "Provider cannot be opened for editing" ) );
return false;
@@ -370,6 +370,9 @@ void QgsRuleBasedRendererV2::renderFeature( QgsFeature& feature,
bool selected,
bool drawVertexMarker )
{
Q_UNUSED( layer );
Q_UNUSED( selected );
Q_UNUSED( drawVertexMarker );

// TODO: selected features, vertex markers

@@ -654,6 +654,8 @@ QMimeData *QgsRuleBasedRendererV2Model::mimeData( const QModelIndexList &indexes
bool QgsRuleBasedRendererV2Model::dropMimeData( const QMimeData *data,
Qt::DropAction action, int row, int column, const QModelIndex &parent )
{
Q_UNUSED( column );

if ( action == Qt::IgnoreAction )
return true;

0 comments on commit 2d8c8c8

Please sign in to comment.
You can’t perform that action at this time.