Skip to content
Permalink
Browse files

Cleaner code

(cherry-picked from 0c1f89c)
  • Loading branch information
nyalldawson committed Jul 16, 2018
1 parent 4c3174c commit 5ee4d8f91799f7f094c3903c430802d0c6ac9c75
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/core/qgsofflineediting.cpp
@@ -1254,7 +1254,7 @@ QgsOfflineEditing::GeometryChanges QgsOfflineEditing::sqlQueryGeometryChanges( s
void QgsOfflineEditing::committedAttributesAdded( const QString &qgisLayerId, const QList<QgsField> &addedAttributes )
{
sqlite3_database_unique_ptr database = openLoggingDb();
if ( !database.get() )
if ( !database )
return;

// insert log
@@ -1281,7 +1281,7 @@ void QgsOfflineEditing::committedAttributesAdded( const QString &qgisLayerId, co
void QgsOfflineEditing::committedFeaturesAdded( const QString &qgisLayerId, const QgsFeatureList &addedFeatures )
{
sqlite3_database_unique_ptr database = openLoggingDb();
if ( !database.get() )
if ( !database )
return;

// insert log
@@ -1306,7 +1306,7 @@ void QgsOfflineEditing::committedFeaturesAdded( const QString &qgisLayerId, cons
void QgsOfflineEditing::committedFeaturesRemoved( const QString &qgisLayerId, const QgsFeatureIds &deletedFeatureIds )
{
sqlite3_database_unique_ptr database = openLoggingDb();
if ( !database.get() )
if ( !database )
return;

// insert log
@@ -1333,7 +1333,7 @@ void QgsOfflineEditing::committedFeaturesRemoved( const QString &qgisLayerId, co
void QgsOfflineEditing::committedAttributeValuesChanges( const QString &qgisLayerId, const QgsChangedAttributesMap &changedAttrsMap )
{
sqlite3_database_unique_ptr database = openLoggingDb();
if ( !database.get() )
if ( !database )
return;

// insert log
@@ -1367,7 +1367,7 @@ void QgsOfflineEditing::committedAttributeValuesChanges( const QString &qgisLaye
void QgsOfflineEditing::committedGeometriesChanges( const QString &qgisLayerId, const QgsGeometryMap &changedGeometries )
{
sqlite3_database_unique_ptr database = openLoggingDb();
if ( !database.get() )
if ( !database )
return;

// insert log

0 comments on commit 5ee4d8f

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