1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-31 08:58:43 +01:00

Where CurConn() is used, don't assume it is non-null

This commit is contained in:
Paul Licameli
2020-12-06 21:30:00 -05:00
parent 900bf44219
commit 41eb66fccf
3 changed files with 25 additions and 11 deletions

View File

@@ -108,7 +108,7 @@ public:
// Return the bytes used for the given block using the connection to a
// specific database. This is the workhorse for the above 3 methods.
static int64_t GetDiskUsage(DBConnection *conn, SampleBlockID blockid);
static int64_t GetDiskUsage(DBConnection &conn, SampleBlockID blockid);
const TranslatableString &GetLastError();
const TranslatableString &GetLibraryError();