From 2172337306cf7a331d6b2c7347b7132b88e8ad3f Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 6 Sep 2018 23:03:55 +0200 Subject: Add missing cast (NoteButton to TrackButton) --- libs/surfaces/launch_control_xl/controllers.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/surfaces/launch_control_xl/controllers.cc') diff --git a/libs/surfaces/launch_control_xl/controllers.cc b/libs/surfaces/launch_control_xl/controllers.cc index dfdfa540d1..2470d4497e 100644 --- a/libs/surfaces/launch_control_xl/controllers.cc +++ b/libs/surfaces/launch_control_xl/controllers.cc @@ -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()) { - return (b->second); + return boost::dynamic_pointer_cast (b->second); } - return boost::shared_ptr(); + return boost::shared_ptr(); } void -- cgit v1.2.3