diff options
author | Robin Gareus <robin@gareus.org> | 2016-07-10 15:30:41 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-07-10 15:30:41 +0200 |
commit | 140258d8abc366ddd600a7b3079b55a730b10225 (patch) | |
tree | 1940e8eb0e410dff8e658f279fe1d8f970ee50ba /libs/ardour/region.cc | |
parent | cb2c459302a58114223e4bb548feece6d68556ef (diff) |
remove reference "const int32_t&" -> const int32_t"
this simplifies lua-bindings and also let's the compiler worry about
constant primitive types.
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r-- | libs/ardour/region.cc | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index e9b3f59bda..039ecbe691 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -320,7 +320,7 @@ Region::Region (boost::shared_ptr<const Region> other) the start within \a other is given by \a offset (i.e. relative to the start of \a other's sources, the start is \a offset + \a other.start() */ -Region::Region (boost::shared_ptr<const Region> other, frameoffset_t offset, const int32_t& sub_num) +Region::Region (boost::shared_ptr<const Region> other, frameoffset_t offset, const int32_t sub_num) : SessionObject(other->session(), other->name()) , _type (other->data_type()) , REGION_COPY_STATE (other) @@ -419,7 +419,7 @@ Region::set_name (const std::string& str) } void -Region::set_length (framecnt_t len, const int32_t& sub_num) +Region::set_length (framecnt_t len, const int32_t sub_num) { //cerr << "Region::set_length() len = " << len << endl; if (locked()) { @@ -456,7 +456,7 @@ Region::set_length (framecnt_t len, const int32_t& sub_num) } void -Region::set_length_internal (framecnt_t len, const int32_t& sub_num) +Region::set_length_internal (framecnt_t len, const int32_t sub_num) { _last_length = _length; _length = len; @@ -643,7 +643,7 @@ Region::set_initial_position (framepos_t pos) } void -Region::set_position_internal (framepos_t pos, bool allow_bbt_recompute, const int32_t& sub_num) +Region::set_position_internal (framepos_t pos, bool allow_bbt_recompute, const int32_t sub_num) { /* We emit a change of Properties::position even if the position hasn't changed (see Region::set_position), so we must always set this up so that @@ -670,7 +670,7 @@ Region::set_position_internal (framepos_t pos, bool allow_bbt_recompute, const i } void -Region::recompute_position_from_lock_style (const int32_t& sub_num) +Region::recompute_position_from_lock_style (const int32_t sub_num) { _beat = _session.tempo_map().exact_beat_at_frame (_position, sub_num); } @@ -743,7 +743,7 @@ Region::set_start (framepos_t pos) } void -Region::move_start (frameoffset_t distance, const int32_t& sub_num) +Region::move_start (frameoffset_t distance, const int32_t sub_num) { if (locked() || position_locked() || video_locked()) { return; @@ -788,25 +788,25 @@ Region::move_start (frameoffset_t distance, const int32_t& sub_num) } void -Region::trim_front (framepos_t new_position, const int32_t& sub_num) +Region::trim_front (framepos_t new_position, const int32_t sub_num) { modify_front (new_position, false, sub_num); } void -Region::cut_front (framepos_t new_position, const int32_t& sub_num) +Region::cut_front (framepos_t new_position, const int32_t sub_num) { modify_front (new_position, true, sub_num); } void -Region::cut_end (framepos_t new_endpoint, const int32_t& sub_num) +Region::cut_end (framepos_t new_endpoint, const int32_t sub_num) { modify_end (new_endpoint, true, sub_num); } void -Region::modify_front (framepos_t new_position, bool reset_fade, const int32_t& sub_num) +Region::modify_front (framepos_t new_position, bool reset_fade, const int32_t sub_num) { if (locked()) { return; @@ -851,7 +851,7 @@ Region::modify_front (framepos_t new_position, bool reset_fade, const int32_t& s } void -Region::modify_end (framepos_t new_endpoint, bool reset_fade, const int32_t& sub_num) +Region::modify_end (framepos_t new_endpoint, bool reset_fade, const int32_t sub_num) { if (locked()) { return; @@ -873,13 +873,13 @@ Region::modify_end (framepos_t new_endpoint, bool reset_fade, const int32_t& sub */ void -Region::trim_end (framepos_t new_endpoint, const int32_t& sub_num) +Region::trim_end (framepos_t new_endpoint, const int32_t sub_num) { modify_end (new_endpoint, false, sub_num); } void -Region::trim_to (framepos_t position, framecnt_t length, const int32_t& sub_num) +Region::trim_to (framepos_t position, framecnt_t length, const int32_t sub_num) { if (locked()) { return; @@ -894,7 +894,7 @@ Region::trim_to (framepos_t position, framecnt_t length, const int32_t& sub_num) } void -Region::trim_to_internal (framepos_t position, framecnt_t length, const int32_t& sub_num) +Region::trim_to_internal (framepos_t position, framecnt_t length, const int32_t sub_num) { framepos_t new_start; @@ -1850,7 +1850,7 @@ Region::post_set (const PropertyChange& pc) } void -Region::set_start_internal (framecnt_t s, const int32_t& sub_num) +Region::set_start_internal (framecnt_t s, const int32_t sub_num) { _start = s; } |