summaryrefslogtreecommitdiff
path: root/libs/evoral/src/MIDIEvent.cpp
diff options
context:
space:
mode:
authorHans Baier <hansfbaier@googlemail.com>2012-10-09 08:33:27 +0000
committerHans Baier <hansfbaier@googlemail.com>2012-10-09 08:33:27 +0000
commitc3850cfb35882fe330681fefe37cb8aaf519917f (patch)
treed02ad4f2139464254f4d67caa154d542e6e5d1fc /libs/evoral/src/MIDIEvent.cpp
parent5c2d7d36441131306b21b96f135ffd0a91b0c876 (diff)
evoral/MIDIEvent: Whitespace cosmetics in header, make XML output work properly eg show the numbers instead of blanks
git-svn-id: svn://localhost/ardour2/branches/3.0@13221 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/evoral/src/MIDIEvent.cpp')
-rw-r--r--libs/evoral/src/MIDIEvent.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/evoral/src/MIDIEvent.cpp b/libs/evoral/src/MIDIEvent.cpp
index c642bc3cc3..53dfbbc423 100644
--- a/libs/evoral/src/MIDIEvent.cpp
+++ b/libs/evoral/src/MIDIEvent.cpp
@@ -60,15 +60,15 @@ MIDIEvent<Time>::to_xml() const
switch (type()) {
case MIDI_CMD_CONTROL:
result = new XMLNode("ControlChange");
- result->add_property("Channel", channel());
- result->add_property("Control", cc_number());
- result->add_property("Value", cc_value());
+ result->add_property("Channel", long(channel()));
+ result->add_property("Control", long(cc_number()));
+ result->add_property("Value", long(cc_value()));
break;
case MIDI_CMD_PGM_CHANGE:
result = new XMLNode("ProgramChange");
- result->add_property("Channel", channel());
- result->add_property("Number", pgm_number());
+ result->add_property("Channel", long(channel()));
+ result->add_property("Number", long(pgm_number()));
break;
default: