summaryrefslogtreecommitdiff
path: root/libs/surfaces/launch_control_xl/controllers.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/surfaces/launch_control_xl/controllers.cc')
-rw-r--r--libs/surfaces/launch_control_xl/controllers.cc4
1 files changed, 2 insertions, 2 deletions
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<TrackButton> (b->second);
}
- return boost::shared_ptr<LaunchControlXL::TrackButton>();
+ return boost::shared_ptr<TrackButton>();
}
void