Skip to content
Permalink
Browse files

Cleaner code

  • Loading branch information
nyalldawson committed Jul 16, 2018
1 parent 5a8619d commit 0c1f89ccbcaee0aecc1671c823f2fa8fdfd20790
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/core/qgsofflineediting.cpp
@@ -1316,7 +1316,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
@@ -1343,7 +1343,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
@@ -1380,7 +1380,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
@@ -1407,7 +1407,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
@@ -1441,7 +1441,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 0c1f89c

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