1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 07:13:49 +01:00

Comment that cache-filling should be no-fail (we don't use it anyway)

This commit is contained in:
Paul Licameli
2017-03-20 11:18:30 -04:00
parent 54c1b0c955
commit 7159966eb4
5 changed files with 11 additions and 3 deletions

View File

@@ -267,6 +267,8 @@ bool SimpleBlockFile::WriteSimpleBlockFile(
return true;
}
// This function should try to fill the cache, but just return without effect
// (not throwing) if there is failure.
void SimpleBlockFile::FillCache()
{
if (mCache.active)

View File

@@ -82,7 +82,8 @@ class PROFILE_DLL_API SimpleBlockFile /* not final */ : public BlockFile {
void WriteCacheToDisk() override;
bool GetNeedFillCache() override { return !mCache.active; }
void FillCache() override;
void FillCache() /* noexcept */ override;
protected: