summaryrefslogtreecommitdiff
path: root/libs/midi++2/midi++
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-01-20 07:33:27 +0000
committerDavid Robillard <d@drobilla.net>2013-01-20 07:33:27 +0000
commit64f1a8e8936c97ca4c55a7a4dc97668f19d7d26f (patch)
tree2aa7ed377c4de6347e0418a500bc7e0d562e0a82 /libs/midi++2/midi++
parent022e590429acfb3e3361734035aa1543527e9bc4 (diff)
Error checking string to int conversion from midnam files.
Use const references where appropriate. Fix incorrect use of (either confusingly named or often abused) Patch tag Number attribute. git-svn-id: svn://localhost/ardour2/branches/3.0@13923 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/midi++2/midi++')
-rw-r--r--libs/midi++2/midi++/midnam_patch.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/midi++2/midi++/midnam_patch.h b/libs/midi++2/midi++/midnam_patch.h
index 338642025e..64eea6f2bf 100644
--- a/libs/midi++2/midi++/midnam_patch.h
+++ b/libs/midi++2/midi++/midnam_patch.h
@@ -362,9 +362,9 @@ public:
const CustomDeviceModeNames& custom_device_mode_names() const { return _custom_device_mode_names; }
- boost::shared_ptr<CustomDeviceMode> custom_device_mode_by_name(std::string mode_name);
- boost::shared_ptr<ChannelNameSet> channel_name_set_by_device_mode_and_channel(std::string mode, uint8_t channel);
- boost::shared_ptr<Patch> find_patch(std::string mode, uint8_t channel, const PatchPrimaryKey& key);
+ boost::shared_ptr<CustomDeviceMode> custom_device_mode_by_name(const std::string& mode_name);
+ boost::shared_ptr<ChannelNameSet> channel_name_set_by_device_mode_and_channel(const std::string& mode, uint8_t channel);
+ boost::shared_ptr<Patch> find_patch(const std::string& mode, uint8_t channel, const PatchPrimaryKey& key);
boost::shared_ptr<NoteNameList> note_name_list(const std::string& name);
boost::shared_ptr<ChannelNameSet> channel_name_set(const std::string& name);