diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2018-09-02 13:23:36 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2018-09-02 13:23:57 -0400 |
commit | 6e419a961e0b17227f4341880055c5690410607c (patch) | |
tree | e7dfe0d5ce26b2fd73b09521e61b76dd8069ad0e /libs/surfaces/push2/scale.cc | |
parent | 67f733bb9768e60fe7108613b3f9335675c7d08d (diff) |
use boost::shared_ptr<> to manage Button/Pad lifetimes in Push2 code
Diffstat (limited to 'libs/surfaces/push2/scale.cc')
-rw-r--r-- | libs/surfaces/push2/scale.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/surfaces/push2/scale.cc b/libs/surfaces/push2/scale.cc index e5f04604d4..7cc2d423f9 100644 --- a/libs/surfaces/push2/scale.cc +++ b/libs/surfaces/push2/scale.cc @@ -290,7 +290,7 @@ ScaleLayout::button_right () void ScaleLayout::show () { - Push2::Button* b; + boost::shared_ptr<Push2::Button> b; last_vpot = -1; @@ -559,7 +559,7 @@ ScaleLayout::show_root_state () } - Push2::Button* b = p2.button_by_id (bid); + boost::shared_ptr<Push2::Button> b = p2.button_by_id (bid); if (b != root_button) { if (root_button) { @@ -610,7 +610,7 @@ ScaleLayout::menu_rearranged () void ScaleLayout::update_cursor_buttons () { - Push2::Button* b; + boost::shared_ptr<Push2::Button> b; bool change; b = p2.button_by_id (Push2::Up); |