13
0

Fix an invalid conversion from 'int' to non-scalar.

This commit is contained in:
Robin Gareus 2018-09-06 19:28:45 +02:00
parent eff7a51de1
commit e1c58aad60

View File

@ -270,14 +270,11 @@ LaunchControlXL::track_button_by_range(uint8_t n, uint8_t first, uint8_t middle)
b = nn_note_button_map.find (middle + n - 4); b = nn_note_button_map.find (middle + n - 4);
} }
boost::shared_ptr<TrackButton> button = 0;
if (b != nn_note_button_map.end()) { if (b != nn_note_button_map.end()) {
button = boost::dynamic_pointer_cast<TrackButton> (b->second); return (b->second);
} }
return button; return boost::shared_ptr<LaunchControlXL::TrackButton>();
} }
void void
@ -325,8 +322,6 @@ LaunchControlXL::button_track_focus(uint8_t n)
} }
} }
boost::shared_ptr<AutomationControl> boost::shared_ptr<AutomationControl>
LaunchControlXL::get_ac_by_state(uint8_t n) { LaunchControlXL::get_ac_by_state(uint8_t n) {
boost::shared_ptr<AutomationControl> ac; boost::shared_ptr<AutomationControl> ac;