13
0

Add missing cast (NoteButton to TrackButton)

This commit is contained in:
Robin Gareus 2018-09-06 23:03:55 +02:00
parent e1c58aad60
commit 2172337306

View File

@ -271,10 +271,10 @@ LaunchControlXL::track_button_by_range(uint8_t n, uint8_t first, uint8_t middle)
} }
if (b != nn_note_button_map.end()) { if (b != nn_note_button_map.end()) {
return (b->second); return boost::dynamic_pointer_cast<TrackButton> (b->second);
} }
return boost::shared_ptr<LaunchControlXL::TrackButton>(); return boost::shared_ptr<TrackButton>();
} }
void void