Skip to content

Commit

Permalink
createOfflineDb function name
Browse files Browse the repository at this point in the history
instead of createSpatialiteDb because it's no longer only spatialite
  • Loading branch information
signedav committed Jul 5, 2018
1 parent 85c7742 commit 8232cb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsofflineediting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsofflineediting.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 8232cb7

Please sign in to comment.