Skip to content

Commit

Permalink
removed unuseful use of "this"
Browse files Browse the repository at this point in the history
  • Loading branch information
luipir committed Sep 26, 2017
1 parent 7a5133a commit 850ccb6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/qgsofflineediting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ void QgsOfflineEditing::applyAttributesAdded( QgsVectorLayer* remoteLayer, sqlit
field.setTypeName( typeName );
if ( !remoteLayer->addAttribute( field ) )
{
this->syncError = true;
syncError = true;
return;
}
}
Expand Down Expand Up @@ -854,7 +854,7 @@ void QgsOfflineEditing::applyFeaturesAdded( QgsVectorLayer* offlineLayer, QgsVec

if ( !remoteLayer->addFeature( f, false ) )
{
this->syncError = true;
syncError = true;
return;
}

Expand All @@ -875,7 +875,7 @@ void QgsOfflineEditing::applyFeaturesRemoved( QgsVectorLayer* remoteLayer, sqlit
QgsFeatureId fid = remoteFid( db, layerId, *it );
if ( !remoteLayer->deleteFeature( fid ) )
{
this->syncError = true;
syncError = true;
return;
}

Expand All @@ -898,7 +898,7 @@ void QgsOfflineEditing::applyAttributeValueChanges( QgsVectorLayer* offlineLayer
QgsDebugMsgLevel( QString( "Offline changeAttributeValue %1 = %2" ).arg( QString( attrLookup[ values.at( i ).attr ] ), values.at( i ).value ), 4 );
if ( !remoteLayer->changeAttributeValue( fid, attrLookup[ values.at( i ).attr ], values.at( i ).value ) )
{
this->syncError = true;
syncError = true;
return;
}

Expand All @@ -918,7 +918,7 @@ void QgsOfflineEditing::applyGeometryChanges( QgsVectorLayer* remoteLayer, sqlit
QgsFeatureId fid = remoteFid( db, layerId, values.at( i ).fid );
if ( !remoteLayer->changeGeometry( fid, QgsGeometry::fromWkt( values.at( i ).geom_wkt ) ) )
{
this->syncError = true;
syncError = true;
return;
}

Expand Down

0 comments on commit 850ccb6

Please sign in to comment.