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 | b0dda1ccccb53f8bb7ad59c96252647f8e4aa124 (patch) | |
tree | 78a88098a4f73413705141bfe8006373e5671625 /src/PatchageFlowCanvas.cpp | |
parent | 7eb1849da7c9473c5242665b9a28081034ec6876 (diff) | |
download | patchage-b0dda1ccccb53f8bb7ad59c96252647f8e4aa124.tar.gz patchage-b0dda1ccccb53f8bb7ad59c96252647f8e4aa124.tar.bz2 patchage-b0dda1ccccb53f8bb7ad59c96252647f8e4aa124.zip |
Mad sed-fu for consistent private member naming.
git-svn-id: http://svn.drobilla.net/lad/patchage@286 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/PatchageFlowCanvas.cpp')
-rw-r--r-- | src/PatchageFlowCanvas.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/PatchageFlowCanvas.cpp b/src/PatchageFlowCanvas.cpp index f059442..881caf8 100644 --- a/src/PatchageFlowCanvas.cpp +++ b/src/PatchageFlowCanvas.cpp @@ -26,7 +26,7 @@ PatchageFlowCanvas::PatchageFlowCanvas(Patchage* app, int width, int height) : FlowCanvas(width, height), - m_app(app) + _app(app) { } @@ -34,7 +34,7 @@ PatchageFlowCanvas::PatchageFlowCanvas(Patchage* app, int width, int height) boost::shared_ptr<PatchageModule> PatchageFlowCanvas::find_module(const string& name, ModuleType type) { - for (ModuleMap::iterator m = m_modules.begin(); m != m_modules.end(); ++m) { + for (ModuleMap::iterator m = _modules.begin(); m != _modules.end(); ++m) { boost::shared_ptr<PatchageModule> pm = boost::dynamic_pointer_cast<PatchageModule>((*m).second); if (pm && pm->name() == name && pm->type() == type) { return pm; @@ -50,7 +50,7 @@ boost::shared_ptr<PatchagePort> PatchageFlowCanvas::find_port(const snd_seq_addr_t* alsa_addr) { boost::shared_ptr<PatchagePort> pp; - for (ModuleMap::iterator m = m_modules.begin(); m != m_modules.end(); ++m) { + for (ModuleMap::iterator m = _modules.begin(); m != _modules.end(); ++m) { for (PortVector::const_iterator p = (*m).second->ports().begin(); p != (*m).second->ports().end(); ++p) { pp = boost::dynamic_pointer_cast<PatchagePort>(*p); if (pp && pp->type() == ALSA_MIDI && pp->alsa_addr() @@ -74,10 +74,10 @@ PatchageFlowCanvas::connect(boost::shared_ptr<Port> port1, boost::shared_ptr<Por if (p1->type() == JACK_AUDIO && p2->type() == JACK_AUDIO || (p1->type() == JACK_MIDI && p2->type() == JACK_MIDI)) - m_app->jack_driver()->connect(p1, p2); + _app->jack_driver()->connect(p1, p2); #ifdef HAVE_ALSA else if (p1->type() == ALSA_MIDI && p2->type() == ALSA_MIDI) - m_app->alsa_driver()->connect(p1, p2); + _app->alsa_driver()->connect(p1, p2); #endif else status_message("WARNING: Cannot make connection, incompatible port types."); @@ -105,10 +105,10 @@ PatchageFlowCanvas::disconnect(boost::shared_ptr<Port> port1, boost::shared_ptr< if (input->type() == JACK_AUDIO && output->type() == JACK_AUDIO || input->type() == JACK_MIDI && output->type() == JACK_MIDI) - m_app->jack_driver()->disconnect(output, input); + _app->jack_driver()->disconnect(output, input); #ifdef HAVE_ALSA else if (input->type() == ALSA_MIDI && output->type() == ALSA_MIDI) - m_app->alsa_driver()->disconnect(output, input); + _app->alsa_driver()->disconnect(output, input); #endif else status_message("ERROR: Attempt to disconnect ports with mismatched types"); @@ -118,6 +118,6 @@ PatchageFlowCanvas::disconnect(boost::shared_ptr<Port> port1, boost::shared_ptr< void PatchageFlowCanvas::status_message(const string& msg) { - m_app->status_message(string("[Canvas] ").append(msg)); + _app->status_message(string("[Canvas] ").append(msg)); } |