summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-09-06 23:03:55 +0200
committerRobin Gareus <robin@gareus.org>2018-09-06 23:03:55 +0200
commit2172337306cf7a331d6b2c7347b7132b88e8ad3f (patch)
tree805423fa7bd8bc43271264e29ffe3de99893dd1a
parente1c58aad6089d7eff31ab1b1e8d73aa1eb184c71 (diff)
Add missing cast (NoteButton to TrackButton)
-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