diff options
author | David Robillard <d@drobilla.net> | 2020-08-02 15:23:19 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-02 15:23:19 +0200 |
commit | bdbdf42f3fe990c713c5437724db39274c387eee (patch) | |
tree | 7f921a04fd580da6bcb6fc8975fa2aebfcd93e0f /include/ingen/URIMap.hpp | |
parent | ec0b87a18623c17c16f6a648fcf277abe14142b7 (diff) | |
download | ingen-bdbdf42f3fe990c713c5437724db39274c387eee.tar.gz ingen-bdbdf42f3fe990c713c5437724db39274c387eee.tar.bz2 ingen-bdbdf42f3fe990c713c5437724db39274c387eee.zip |
Remove std::shared_ptr alias
Diffstat (limited to 'include/ingen/URIMap.hpp')
-rw-r--r-- | include/ingen/URIMap.hpp | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/include/ingen/URIMap.hpp b/include/ingen/URIMap.hpp index cfd6d6d8..8b93e216 100644 --- a/include/ingen/URIMap.hpp +++ b/include/ingen/URIMap.hpp @@ -25,6 +25,7 @@ #include "raul/Noncopyable.hpp" #include <cstdint> +#include <memory> #include <mutex> #include <string> #include <unordered_map> @@ -53,8 +54,10 @@ public: const char* uri() const override { return _feature.URI; } - SPtr<LV2_Feature> feature(World&, Node*) override { - return SPtr<LV2_Feature>(&_feature, NullDeleter<LV2_Feature>); + std::shared_ptr<LV2_Feature> feature(World&, Node*) override + { + return std::shared_ptr<LV2_Feature>(&_feature, + NullDeleter<LV2_Feature>); } private: @@ -93,15 +96,22 @@ public: const LV2_URID_Unmap& urid_unmap() const { return _urid_unmap_feature->data(); } LV2_URID_Unmap& urid_unmap() { return _urid_unmap_feature->data(); } - SPtr<URIDMapFeature> urid_map_feature() { return _urid_map_feature; } - SPtr<URIDUnmapFeature> urid_unmap_feature() { return _urid_unmap_feature; } + std::shared_ptr<URIDMapFeature> urid_map_feature() + { + return _urid_map_feature; + } + + std::shared_ptr<URIDUnmapFeature> urid_unmap_feature() + { + return _urid_unmap_feature; + } private: friend struct URIDMapFeature; friend struct URIDUnMapFeature; - SPtr<URIDMapFeature> _urid_map_feature; - SPtr<URIDUnmapFeature> _urid_unmap_feature; + std::shared_ptr<URIDMapFeature> _urid_map_feature; + std::shared_ptr<URIDUnmapFeature> _urid_unmap_feature; std::mutex _mutex; std::unordered_map<std::string, LV2_URID> _map; |