Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 24, 2018
1 parent 1a94727 commit 3b47116
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/providers/wfs/qgswfsshareddata.cpp
Expand Up @@ -269,6 +269,7 @@ bool QgsWFSSharedData::createCache()
// Copy the temporary database back to disk
vsi_l_offset nLength = 0;
GByte *pabyData = VSIGetMemFileBuffer( vsimemFilename.toStdString().c_str(), &nLength, TRUE );
Q_ASSERT( !QFile::exists( mCacheDbname ) );
VSILFILE *fp = VSIFOpenL( mCacheDbname.toStdString().c_str(), "wb " );
if ( fp )
{
Expand Down Expand Up @@ -340,6 +341,7 @@ bool QgsWFSSharedData::createCache()
}

// Copy the in-memory template SpatiaLite DB into the target DB
Q_ASSERT( !QFile::exists( mCacheDbname ) );
QFile dbFile( mCacheDbname );
if ( !dbFile.open( QIODevice::WriteOnly | QIODevice::Truncate ) )
{
Expand Down

0 comments on commit 3b47116

Please sign in to comment.