Skip to content
Permalink
Browse files

createOfflineDb function name

instead of createSpatialiteDb because it's no longer only spatialite
  • Loading branch information
signedav committed Jul 5, 2018
1 parent 85c7742 commit 8232cb7edaea88fb4accf57071c4dfc368c4e8a9
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/core/qgsofflineediting.cpp
  2. +1 −1 src/core/qgsofflineediting.h
@@ -83,7 +83,7 @@ bool QgsOfflineEditing::convertToOfflineProject( const QString &offlineDataPath,
return false;
}
QString dbPath = QDir( offlineDataPath ).absoluteFilePath( offlineDbFile );
if ( createSpatialiteDB( dbPath, gpkg ) )
if ( createOfflineDb( dbPath, gpkg ) )
{
spatialite_database_unique_ptr database;
int rc = database.open( dbPath );
@@ -385,7 +385,7 @@ void QgsOfflineEditing::initializeSpatialMetadata( sqlite3 *sqlite_handle )
spatial_ref_sys_init( sqlite_handle, 0 );
}

bool QgsOfflineEditing::createSpatialiteDB( const QString &offlineDbPath, bool gpkg )
bool QgsOfflineEditing::createOfflineDb( const QString &offlineDbPath, bool gpkg )
{
int ret;
char *errMsg = nullptr;
@@ -107,7 +107,7 @@ class CORE_EXPORT QgsOfflineEditing : public QObject

private:
void initializeSpatialMetadata( sqlite3 *sqlite_handle );
bool createSpatialiteDB( const QString &offlineDbPath, bool gpkg = false );
bool createOfflineDb( const QString &offlineDbPath, bool gpkg = false );
void createLoggingTables( sqlite3 *db );

QgsVectorLayer *copyVectorLayer( QgsVectorLayer *layer, sqlite3 *db, const QString &offlineDbPath, bool onlySelected, bool gpkg );

0 comments on commit 8232cb7

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