summaryrefslogtreecommitdiffstats
path: root/src/gui/NodeModule.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/NodeModule.hpp')
-rw-r--r--src/gui/NodeModule.hpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/gui/NodeModule.hpp b/src/gui/NodeModule.hpp
index 55a255a8..b4378fac 100644
--- a/src/gui/NodeModule.hpp
+++ b/src/gui/NodeModule.hpp
@@ -47,17 +47,19 @@ class NodeMenu;
class NodeModule : public Ganv::Module
{
public:
- static NodeModule* create(GraphCanvas& canvas,
- std::shared_ptr<const client::BlockModel> block,
- bool human);
+ static NodeModule*
+ create(GraphCanvas& canvas,
+ const std::shared_ptr<const client::BlockModel>& block,
+ bool human);
~NodeModule() override;
App& app() const;
- Port* port(std::shared_ptr<const client::PortModel> model);
+ Port* port(const std::shared_ptr<const client::PortModel>& model);
- void delete_port_view(std::shared_ptr<const client::PortModel> model);
+ void
+ delete_port_view(const std::shared_ptr<const client::PortModel>& model);
virtual void store_location(double ax, double ay);
void show_human_names(bool b);
@@ -65,8 +67,8 @@ public:
std::shared_ptr<const client::BlockModel> block() const { return _block; }
protected:
- NodeModule(GraphCanvas& canvas,
- std::shared_ptr<const client::BlockModel> block);
+ NodeModule(GraphCanvas& canvas,
+ const std::shared_ptr<const client::BlockModel>& block);
virtual bool on_double_click(GdkEventButton* ev);
@@ -82,7 +84,7 @@ protected:
void rename();
void property_changed(const URI& key, const Atom& value);
- void new_port_view(std::shared_ptr<const client::PortModel> port);
+ void new_port_view(const std::shared_ptr<const client::PortModel>& port);
void port_activity(uint32_t index, const Atom& value);
void port_value_changed(uint32_t index, const Atom& value);