mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Fix scalar initialization of shared_ptr<>.
This commit is contained in:
parent
2de7ee24a8
commit
897258f5f1
2 changed files with 6 additions and 6 deletions
|
|
@ -601,7 +601,7 @@ void
|
|||
LaunchControlXL::update_knob_led_by_id (uint8_t id, LEDColor color)
|
||||
{
|
||||
|
||||
boost::shared_ptr<Knob> knob = 0;
|
||||
boost::shared_ptr<Knob> knob;
|
||||
IDKnobMap::iterator k = id_knob_map.find(static_cast<KnobID>(id));
|
||||
|
||||
if (k != id_knob_map.end()) {
|
||||
|
|
@ -761,7 +761,7 @@ LaunchControlXL::fader(uint8_t n)
|
|||
return;
|
||||
}
|
||||
|
||||
boost::shared_ptr<Fader> fader = 0;
|
||||
boost::shared_ptr<Fader> fader;
|
||||
IDFaderMap::iterator f = id_fader_map.find(static_cast<FaderID>(n));
|
||||
|
||||
if (f != id_fader_map.end()) {
|
||||
|
|
@ -785,7 +785,7 @@ LaunchControlXL::knob_sendA(uint8_t n)
|
|||
return;
|
||||
}
|
||||
|
||||
boost::shared_ptr<Knob> knob = 0;
|
||||
boost::shared_ptr<Knob> knob;
|
||||
IDKnobMap::iterator k = id_knob_map.find(static_cast<KnobID>(n));
|
||||
|
||||
if (k != id_knob_map.end()) {
|
||||
|
|
@ -816,7 +816,7 @@ LaunchControlXL::knob_sendB(uint8_t n)
|
|||
return;
|
||||
}
|
||||
|
||||
boost::shared_ptr<Knob> knob = 0;
|
||||
boost::shared_ptr<Knob> knob;
|
||||
IDKnobMap::iterator k = id_knob_map.find(static_cast<KnobID>(n + 8));
|
||||
|
||||
if (k != id_knob_map.end()) {
|
||||
|
|
@ -851,7 +851,7 @@ LaunchControlXL::knob_pan(uint8_t n)
|
|||
return;
|
||||
}
|
||||
|
||||
boost::shared_ptr<Knob> knob = 0;
|
||||
boost::shared_ptr<Knob> knob;
|
||||
IDKnobMap::iterator k = id_knob_map.find(static_cast<KnobID>(n + 16));
|
||||
|
||||
if (k != id_knob_map.end()) {
|
||||
|
|
|
|||
|
|
@ -1064,7 +1064,7 @@ LaunchControlXL::switch_bank (uint32_t base)
|
|||
boost::shared_ptr<SelectButton> sr = boost::dynamic_pointer_cast<SelectButton>(id_controller_button_map[SelectRight]);
|
||||
|
||||
boost::shared_ptr<Stripable> s[8];
|
||||
boost::shared_ptr<Stripable> next_base = 0;
|
||||
boost::shared_ptr<Stripable> next_base;
|
||||
uint32_t stripable_counter = get_amount_of_tracks();
|
||||
uint32_t skip = base;
|
||||
uint32_t n = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue