mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 07:43:54 +02:00
Hide the use of new in factory functions for BlockFiles
This commit is contained in:
@@ -48,6 +48,13 @@ class BlockFile;
|
||||
// to do: use shared_ptr instead
|
||||
using BlockFilePtr = BlockFile *;
|
||||
|
||||
// to do: make this a synonym for make_shared
|
||||
template< typename Result, typename... Args >
|
||||
inline Result *make_blockfile (Args && ... args)
|
||||
{
|
||||
return new Result( std::forward< Args > ( args )... );
|
||||
}
|
||||
|
||||
class PROFILE_DLL_API BlockFile /* not final, abstract */ {
|
||||
public:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user