diff options
author | David Robillard <d@drobilla.net> | 2022-12-13 01:16:41 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-12-14 18:04:27 -0500 |
commit | 4b56cdf7a925dafd5e4ac085874d2afe294ec456 (patch) | |
tree | b0fd7ab1b58c1cc4eb4ec0f211b3221522ea2a7f /src/server/LV2Block.hpp | |
parent | f6ee1ce7bb45d0f6267b2dad61f6b87c79a5906c (diff) | |
download | ingen-4b56cdf7a925dafd5e4ac085874d2afe294ec456.tar.gz ingen-4b56cdf7a925dafd5e4ac085874d2afe294ec456.tar.bz2 ingen-4b56cdf7a925dafd5e4ac085874d2afe294ec456.zip |
Use std::filesystem and std::make_unique
Diffstat (limited to 'src/server/LV2Block.hpp')
-rw-r--r-- | src/server/LV2Block.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/LV2Block.hpp b/src/server/LV2Block.hpp index 9e907ffa..fa3979cd 100644 --- a/src/server/LV2Block.hpp +++ b/src/server/LV2Block.hpp @@ -38,6 +38,7 @@ #include <cstdint> #include <cstdlib> #include <cstring> +#include <filesystem> #include <memory> #include <mutex> @@ -59,7 +60,6 @@ struct constant_time_size; namespace ingen { -class FilePath; class Resource; class URIs; class World; @@ -91,7 +91,7 @@ public: bool instantiate(BufferFactory& bufs, const LilvState* state); LilvInstance* instance() override { return instance(0); } - bool save_state(const FilePath& dir) const override; + bool save_state(const std::filesystem::path& dir) const override; BlockImpl* duplicate(Engine& engine, const raul::Symbol& symbol, @@ -121,7 +121,7 @@ public: const BufferRef& buf, SampleCount offset) override; - static StatePtr load_state(World& world, const FilePath& path); + static StatePtr load_state(World& world, const std::filesystem::path& path); protected: struct Instance : public raul::Noncopyable { |