From d42b83ffe581651886ca0874b6b75dcbb6127aea Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 7 Jun 2011 02:44:16 +0000 Subject: Remove use of smart pointers in FlowCanvas entirely. Since FlowCanvas's containers own their children, there is no real benefit to using smart pointers for objects, though there is overhead. There are no longer any add or remove methods for containers, simply create (new) and destroy (delete) objects and things should work as expected. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3366 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/NodeModule.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/gui/NodeModule.hpp') diff --git a/src/gui/NodeModule.hpp b/src/gui/NodeModule.hpp index 7a62b87f..7bf6f996 100644 --- a/src/gui/NodeModule.hpp +++ b/src/gui/NodeModule.hpp @@ -1,4 +1,5 @@ -/* This file is part of In* Copyright 2007-2011 David Robillard +/* This file is part of Ingen + * Copyright 2007-2011 David Robillard * * Ingen is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by the Free Software @@ -55,9 +56,9 @@ public: virtual ~NodeModule(); - boost::shared_ptr port(boost::shared_ptr model); + Port* port(boost::shared_ptr model); - void remove_port(SharedPtr port); + void delete_port_view(SharedPtr port); virtual void store_location(); void show_human_names(bool b); @@ -78,7 +79,7 @@ protected: void rename(); void property_changed(const Raul::URI& predicate, const Raul::Atom& value); - void add_port(SharedPtr port, bool resize=true); + void new_port_view(SharedPtr port, bool resize=true); void value_changed(uint32_t index, const Raul::Atom& value); void plugin_changed(); -- cgit v1.2.1