mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-21 16:11:11 +01:00
Hide the use of new in factory functions for BlockFiles
This commit is contained in:
@@ -71,13 +71,13 @@ BlockFilePtr SilentBlockFile::BuildFromXML(DirManager & WXUNUSED(dm), const wxCh
|
||||
len = nValue;
|
||||
}
|
||||
|
||||
return new SilentBlockFile(len);
|
||||
return make_blockfile<SilentBlockFile>(len);
|
||||
}
|
||||
|
||||
/// Create a copy of this BlockFile
|
||||
BlockFilePtr SilentBlockFile::Copy(wxFileNameWrapper &&)
|
||||
{
|
||||
BlockFile *newBlockFile = new SilentBlockFile(mLen);
|
||||
auto newBlockFile = make_blockfile<SilentBlockFile>(mLen);
|
||||
|
||||
return newBlockFile;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user