summaryrefslogtreecommitdiffstats
path: root/src/gui/GraphPortModule.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-02 15:23:19 +0200
committerDavid Robillard <d@drobilla.net>2020-08-02 15:23:19 +0200
commitbdbdf42f3fe990c713c5437724db39274c387eee (patch)
tree7f921a04fd580da6bcb6fc8975fa2aebfcd93e0f /src/gui/GraphPortModule.hpp
parentec0b87a18623c17c16f6a648fcf277abe14142b7 (diff)
downloadingen-bdbdf42f3fe990c713c5437724db39274c387eee.tar.gz
ingen-bdbdf42f3fe990c713c5437724db39274c387eee.tar.bz2
ingen-bdbdf42f3fe990c713c5437724db39274c387eee.zip
Remove std::shared_ptr alias
Diffstat (limited to 'src/gui/GraphPortModule.hpp')
-rw-r--r--src/gui/GraphPortModule.hpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/gui/GraphPortModule.hpp b/src/gui/GraphPortModule.hpp
index 2bc5111b..06e40dff 100644
--- a/src/gui/GraphPortModule.hpp
+++ b/src/gui/GraphPortModule.hpp
@@ -21,6 +21,7 @@
#include "ganv/Module.hpp"
+#include <memory>
#include <string>
namespace ingen {
@@ -46,7 +47,8 @@ class GraphPortModule : public Ganv::Module
{
public:
static GraphPortModule*
- create(GraphCanvas& canvas, const SPtr<const client::PortModel>& model);
+ create(GraphCanvas& canvas,
+ const std::shared_ptr<const client::PortModel>& model);
App& app() const;
@@ -55,11 +57,11 @@ public:
void set_name(const std::string& n);
- SPtr<const client::PortModel> port() const { return _model; }
+ std::shared_ptr<const client::PortModel> port() const { return _model; }
protected:
- GraphPortModule(GraphCanvas& canvas,
- const SPtr<const client::PortModel>& model);
+ GraphPortModule(GraphCanvas& canvas,
+ const std::shared_ptr<const client::PortModel>& model);
bool show_menu(GdkEventButton* ev);
void set_selected(gboolean b) override;
@@ -68,8 +70,8 @@ protected:
void property_changed(const URI& key, const Atom& value);
- SPtr<const client::PortModel> _model;
- Port* _port;
+ std::shared_ptr<const client::PortModel> _model;
+ Port* _port;
};
} // namespace gui