mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-06 03:32:09 +01:00
movable_ptr(_with_deleter) -> std::unique_ptr
This commit is contained in:
@@ -66,13 +66,13 @@ struct ModuleInterfaceDeleter {
|
||||
void operator ()(ModuleInterface *pInterface) const;
|
||||
};
|
||||
|
||||
using ModuleInterfaceHandle = movable_ptr_with_deleter<
|
||||
using ModuleInterfaceHandle = std::unique_ptr<
|
||||
ModuleInterface, ModuleInterfaceDeleter
|
||||
>;
|
||||
|
||||
typedef std::map<wxString, ModuleMain *> ModuleMainMap;
|
||||
typedef std::map<wxString, ModuleInterfaceHandle> ModuleMap;
|
||||
typedef std::map<ModuleInterface *, movable_ptr<wxDynamicLibrary>> LibraryMap;
|
||||
typedef std::map<ModuleInterface *, std::unique_ptr<wxDynamicLibrary>> LibraryMap;
|
||||
|
||||
class ModuleManager final : public ModuleManagerInterface
|
||||
{
|
||||
@@ -126,7 +126,7 @@ private:
|
||||
ModuleMap mDynModules;
|
||||
LibraryMap mLibs;
|
||||
|
||||
std::vector<movable_ptr<Module>> mModules;
|
||||
std::vector<std::unique_ptr<Module>> mModules;
|
||||
};
|
||||
|
||||
#endif /* __AUDACITY_MODULEMANAGER_H__ */
|
||||
|
||||
Reference in New Issue
Block a user