diff options
Diffstat (limited to 'src/progs/ingenuity/SubpatchModule.h')
-rw-r--r-- | src/progs/ingenuity/SubpatchModule.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/progs/ingenuity/SubpatchModule.h b/src/progs/ingenuity/SubpatchModule.h index c530311e..a8e6e971 100644 --- a/src/progs/ingenuity/SubpatchModule.h +++ b/src/progs/ingenuity/SubpatchModule.h @@ -21,6 +21,7 @@ #include <string> #include <libgnomecanvasmm.h> #include "OmModule.h" +#include "util/CountedPtr.h" #include "PatchController.h" using std::string; using std::list; @@ -36,7 +37,6 @@ namespace Ingenuity { class OmFlowCanvas; class NodeControlWindow; -class PatchController; /** A module to represent a subpatch @@ -46,7 +46,7 @@ class PatchController; class SubpatchModule : public OmModule { public: - SubpatchModule(OmFlowCanvas* canvas, PatchController* controller); + SubpatchModule(OmFlowCanvas* canvas, CountedPtr<PatchController> controller); virtual ~SubpatchModule() {} void on_double_click(GdkEventButton* ev); @@ -55,10 +55,10 @@ public: void browse_to_patch(); void menu_remove(); - PatchController* patch() { return m_patch; } + CountedPtr<PatchController> patch() { return m_patch; } protected: - PatchController* m_patch; + CountedPtr<PatchController> m_patch; }; |