mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Where CurConn() is used, don't assume it is non-null
This commit is contained in:
@@ -88,6 +88,7 @@ private:
|
||||
|
||||
private:
|
||||
//! This must never be called for silent blocks
|
||||
/*! @post return value is not null */
|
||||
DBConnection *Conn() const;
|
||||
sqlite3 *DB() const
|
||||
{
|
||||
@@ -527,7 +528,7 @@ size_t SqliteSampleBlock::GetSpaceUsage() const
|
||||
if (IsSilent())
|
||||
return 0;
|
||||
else
|
||||
return ProjectFileIO::GetDiskUsage(Conn(), mBlockID);
|
||||
return ProjectFileIO::GetDiskUsage(*Conn(), mBlockID);
|
||||
}
|
||||
|
||||
size_t SqliteSampleBlock::GetBlob(void *dest,
|
||||
|
||||
Reference in New Issue
Block a user