From 712440a48c29cec492129a0d3ce4daadc32463e9 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 7 Oct 2016 19:07:15 +0200 Subject: proper C++ const API (possible fix for MSVC builds) --- libs/ardour/ardour/midi_model.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/ardour/ardour') diff --git a/libs/ardour/ardour/midi_model.h b/libs/ardour/ardour/midi_model.h index 93da4a1624..c5467cc58d 100644 --- a/libs/ardour/ardour/midi_model.h +++ b/libs/ardour/ardour/midi_model.h @@ -251,9 +251,9 @@ public: PatchChangePtr unmarshal_patch_change (XMLNode *); }; - MidiModel::NoteDiffCommand* new_note_diff_command (const std::string name = "midi edit"); - MidiModel::SysExDiffCommand* new_sysex_diff_command (const std::string name = "midi edit"); - MidiModel::PatchChangeDiffCommand* new_patch_change_diff_command (const std::string name = "midi edit"); + MidiModel::NoteDiffCommand* new_note_diff_command (const std::string& name = "midi edit"); + MidiModel::SysExDiffCommand* new_sysex_diff_command (const std::string& name = "midi edit"); + MidiModel::PatchChangeDiffCommand* new_patch_change_diff_command (const std::string& name = "midi edit"); void apply_command (Session& session, Command* cmd); void apply_command (Session* session, Command* cmd) { if (session) { apply_command (*session, cmd); } } void apply_command_as_subcommand (Session& session, Command* cmd); -- cgit v1.2.3