summaryrefslogtreecommitdiff
path: root/libs/ardour/midi_model.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-10-07 19:07:15 +0200
committerRobin Gareus <robin@gareus.org>2016-10-07 19:08:39 +0200
commit712440a48c29cec492129a0d3ce4daadc32463e9 (patch)
tree9c89fd986da3e8c52b661618b4694ae4c39dcd48 /libs/ardour/midi_model.cc
parent17b6f4581902b8bfde60dd754a19b984411f5728 (diff)
proper C++ const API (possible fix for MSVC builds)
Diffstat (limited to 'libs/ardour/midi_model.cc')
-rw-r--r--libs/ardour/midi_model.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/midi_model.cc b/libs/ardour/midi_model.cc
index 4e895c5a92..c94fb5ec17 100644
--- a/libs/ardour/midi_model.cc
+++ b/libs/ardour/midi_model.cc
@@ -59,7 +59,7 @@ MidiModel::MidiModel (boost::shared_ptr<MidiSource> s)
* formality, until apply_command is called and ownership is taken.
*/
MidiModel::NoteDiffCommand*
-MidiModel::new_note_diff_command (const string name)
+MidiModel::new_note_diff_command (const string& name)
{
boost::shared_ptr<MidiSource> ms = _midi_source.lock ();
assert (ms);
@@ -69,7 +69,7 @@ MidiModel::new_note_diff_command (const string name)
/** Start a new SysExDiff command */
MidiModel::SysExDiffCommand*
-MidiModel::new_sysex_diff_command (const string name)
+MidiModel::new_sysex_diff_command (const string& name)
{
boost::shared_ptr<MidiSource> ms = _midi_source.lock ();
assert (ms);
@@ -79,7 +79,7 @@ MidiModel::new_sysex_diff_command (const string name)
/** Start a new PatchChangeDiff command */
MidiModel::PatchChangeDiffCommand*
-MidiModel::new_patch_change_diff_command (const string name)
+MidiModel::new_patch_change_diff_command (const string& name)
{
boost::shared_ptr<MidiSource> ms = _midi_source.lock ();
assert (ms);