mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 06:05:43 +01:00
proper C++ const API (possible fix for MSVC builds)
This commit is contained in:
parent
17b6f45819
commit
712440a48c
2 changed files with 6 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue