From bdbdf42f3fe990c713c5437724db39274c387eee Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 2 Aug 2020 15:23:19 +0200 Subject: Remove std::shared_ptr alias --- src/gui/ThreadedLoader.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/gui/ThreadedLoader.cpp') diff --git a/src/gui/ThreadedLoader.cpp b/src/gui/ThreadedLoader.cpp index 45ac4f7f..41b1320e 100644 --- a/src/gui/ThreadedLoader.cpp +++ b/src/gui/ThreadedLoader.cpp @@ -24,6 +24,7 @@ #include "ingen/client/GraphModel.hpp" #include +#include #include using boost::optional; @@ -31,7 +32,7 @@ using boost::optional; namespace ingen { namespace gui { -ThreadedLoader::ThreadedLoader(App& app, SPtr engine) +ThreadedLoader::ThreadedLoader(App& app, std::shared_ptr engine) : _app(app) , _sem(0) , _engine(std::move(engine)) @@ -52,7 +53,7 @@ ThreadedLoader::~ThreadedLoader() } } -SPtr +std::shared_ptr ThreadedLoader::parser() { return _app.world().parser(); @@ -115,7 +116,8 @@ ThreadedLoader::load_graph_event(const FilePath& file_path, } void -ThreadedLoader::save_graph(SPtr model, const URI& uri) +ThreadedLoader::save_graph(std::shared_ptr model, + const URI& uri) { std::lock_guard lock(_mutex); @@ -128,8 +130,9 @@ ThreadedLoader::save_graph(SPtr model, const URI& uri) } void -ThreadedLoader::save_graph_event(SPtr model, - const URI& uri) +ThreadedLoader::save_graph_event( + std::shared_ptr model, + const URI& uri) { assert(uri.scheme() == "file"); if (_app.serialiser()) { -- cgit v1.2.1