diff options
author | David Robillard <d@drobilla.net> | 2007-02-07 03:22:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-02-07 03:22:42 +0000 |
commit | 39d5400b39c8089287d5d294becae1268d232d31 (patch) | |
tree | 0cf73ef86233121bc7f0408ca536aad196d3166c /src/progs/ingenuity/PatchPortModule.cpp | |
parent | e135edf1e65ac978f86f4849bd3667299dd69c7e (diff) | |
download | ingen-39d5400b39c8089287d5d294becae1268d232d31.tar.gz ingen-39d5400b39c8089287d5d294becae1268d232d31.tar.bz2 ingen-39d5400b39c8089287d5d294becae1268d232d31.zip |
Mad sed-fu for consistent private member naming.
git-svn-id: http://svn.drobilla.net/lad/ingen@286 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/PatchPortModule.cpp')
-rw-r--r-- | src/progs/ingenuity/PatchPortModule.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/progs/ingenuity/PatchPortModule.cpp b/src/progs/ingenuity/PatchPortModule.cpp index 53b56854..832ebcf5 100644 --- a/src/progs/ingenuity/PatchPortModule.cpp +++ b/src/progs/ingenuity/PatchPortModule.cpp @@ -31,7 +31,7 @@ namespace Ingenuity { PatchPortModule::PatchPortModule(boost::shared_ptr<PatchCanvas> canvas, SharedPtr<PortModel> port) : LibFlowCanvas::Module(canvas, port->path().name(), 0, 0, false), // FIXME: coords? - m_port(port) + _port(port) { /*if (port_model()->polyphonic() && port_model()->parent() != NULL && port_model()->parent_patch()->poly() > 1) { @@ -68,8 +68,8 @@ PatchPortModule::create(boost::shared_ptr<PatchCanvas> canvas, SharedPtr<PortMod new PatchPortModule(canvas, port)); assert(ret); - ret->m_patch_port = boost::shared_ptr<Port>(new Port(ret, port, true, true)); - ret->add_port(ret->m_patch_port); + ret->_patch_port = boost::shared_ptr<Port>(new Port(ret, port, true, true)); + ret->add_port(ret->_patch_port); ret->resize(); @@ -86,13 +86,13 @@ PatchPortModule::store_location() const float x = static_cast<float>(property_x()); const float y = static_cast<float>(property_y()); - const Atom& existing_x = m_port->get_metadata("ingenuity:canvas-x"); - const Atom& existing_y = m_port->get_metadata("ingenuity:canvas-y"); + const Atom& existing_x = _port->get_metadata("ingenuity:canvas-x"); + const Atom& existing_y = _port->get_metadata("ingenuity:canvas-y"); if (existing_x.type() != Atom::FLOAT || existing_y.type() != Atom::FLOAT || existing_x.get_float() != x || existing_y.get_float() != y) { - App::instance().engine()->set_metadata(m_port->path(), "ingenuity:canvas-x", Atom(x)); - App::instance().engine()->set_metadata(m_port->path(), "ingenuity:canvas-y", Atom(y)); + App::instance().engine()->set_metadata(_port->path(), "ingenuity:canvas-x", Atom(x)); + App::instance().engine()->set_metadata(_port->path(), "ingenuity:canvas-y", Atom(y)); } } |