diff options
author | David Robillard <d@drobilla.net> | 2013-01-12 23:38:03 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-01-12 23:38:03 +0000 |
commit | df1447c665e6c3631961297a9d3e9aff4e94c47f (patch) | |
tree | c0ff117c362e6d571f430f886ab62f372b59af08 /src/gui/SubgraphModule.hpp | |
parent | bb335dca695273622b7a4ebbefbe9e089edb9ab4 (diff) | |
download | ingen-df1447c665e6c3631961297a9d3e9aff4e94c47f.tar.gz ingen-df1447c665e6c3631961297a9d3e9aff4e94c47f.tar.bz2 ingen-df1447c665e6c3631961297a9d3e9aff4e94c47f.zip |
Remove Raul::SharedPtr and switch to std::shared_ptr.
Use project local short type aliases for shared_ptr and friends.
Move Raul::Disposable and Raul::Manageable into Raul::Maid.
Use sets to store machina nodes and edges to avoid O(n) searches.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4939 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/SubgraphModule.hpp')
-rw-r--r-- | src/gui/SubgraphModule.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/SubgraphModule.hpp b/src/gui/SubgraphModule.hpp index 569e0fd8..a439c324 100644 --- a/src/gui/SubgraphModule.hpp +++ b/src/gui/SubgraphModule.hpp @@ -17,7 +17,7 @@ #ifndef INGEN_GUI_SUBGRAPHMODULE_HPP #define INGEN_GUI_SUBGRAPHMODULE_HPP -#include "raul/SharedPtr.hpp" +#include "ingen/types.hpp" #include "NodeModule.hpp" #include "GraphPortModule.hpp" @@ -41,7 +41,7 @@ class SubgraphModule : public NodeModule { public: SubgraphModule(GraphCanvas& canvas, - SharedPtr<const Client::GraphModel> controller); + SPtr<const Client::GraphModel> controller); virtual ~SubgraphModule() {} @@ -52,10 +52,10 @@ public: void browse_to_graph(); void menu_remove(); - SharedPtr<const Client::GraphModel> graph() const { return _graph; } + SPtr<const Client::GraphModel> graph() const { return _graph; } protected: - SharedPtr<const Client::GraphModel> _graph; + SPtr<const Client::GraphModel> _graph; }; } // namespace GUI |