mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
triggerbox: fix some const qualifier usage
This commit is contained in:
parent
8e2b36d43d
commit
3755c04786
2 changed files with 3 additions and 3 deletions
|
|
@ -240,7 +240,7 @@ class LIBARDOUR_API Trigger : public PBD::Stateful {
|
|||
void set_pending (Trigger*);
|
||||
Trigger* swap_pending (Trigger*);
|
||||
|
||||
static const Trigger* MagicClearPointerValue;
|
||||
static Trigger * const MagicClearPointerValue;
|
||||
|
||||
virtual SegmentDescriptor get_segment_descriptor () const = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ namespace ARDOUR {
|
|||
}
|
||||
}
|
||||
|
||||
const Trigger* Trigger::MagicClearPointerValue = (Trigger*) 0xfeedface;
|
||||
Trigger * const Trigger::MagicClearPointerValue = (Trigger*) 0xfeedface;
|
||||
|
||||
Trigger::Trigger (uint32_t n, TriggerBox& b)
|
||||
: _box (b)
|
||||
|
|
@ -305,7 +305,7 @@ Trigger::set_region (boost::shared_ptr<Region> r, bool use_thread)
|
|||
|
||||
if (!r) {
|
||||
/* clear operation, no need to talk to the worker thread */
|
||||
set_pending ((Trigger*) Trigger::MagicClearPointerValue);
|
||||
set_pending (Trigger::MagicClearPointerValue);
|
||||
request_stop ();
|
||||
} else if (use_thread) {
|
||||
/* load data, do analysis in another thread */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue