From 019eeff6a7d051427ad62a288f350e66471a0462 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 2 Aug 2020 13:43:01 +0200 Subject: Remove std::unique_ptr alias --- include/ingen/AtomForge.hpp | 5 +++-- include/ingen/Serialiser.hpp | 3 ++- include/ingen/memory.hpp | 3 --- 3 files changed, 5 insertions(+), 6 deletions(-) (limited to 'include/ingen') diff --git a/include/ingen/AtomForge.hpp b/include/ingen/AtomForge.hpp index ac8d15aa..372fd29d 100644 --- a/include/ingen/AtomForge.hpp +++ b/include/ingen/AtomForge.hpp @@ -28,6 +28,7 @@ #include #include #include +#include namespace ingen { @@ -69,8 +70,8 @@ public: private: struct SratomDeleter { void operator()(Sratom* s) { sratom_free(s); } }; - using AtomPtr = UPtr>; - using SratomPtr = UPtr; + using AtomPtr = std::unique_ptr>; + using SratomPtr = std::unique_ptr; /// Append some data and return a reference to its start intptr_t append(const void* data, uint32_t len) { diff --git a/include/ingen/Serialiser.hpp b/include/ingen/Serialiser.hpp index 7311d6ce..103a4822 100644 --- a/include/ingen/Serialiser.hpp +++ b/include/ingen/Serialiser.hpp @@ -23,6 +23,7 @@ #include "ingen/memory.hpp" #include "sord/sordmm.hpp" +#include #include namespace Raul { class Path; } @@ -98,7 +99,7 @@ public: private: struct Impl; - UPtr me; + std::unique_ptr me; }; } // namespace ingen diff --git a/include/ingen/memory.hpp b/include/ingen/memory.hpp index 82a1e2a6..bec86c43 100644 --- a/include/ingen/memory.hpp +++ b/include/ingen/memory.hpp @@ -30,9 +30,6 @@ void NullDeleter(T* ptr) {} template struct FreeDeleter { void operator()(T* const ptr) { free(ptr); } }; -template > -using UPtr = std::unique_ptr; - template using SPtr = std::shared_ptr; -- cgit v1.2.1