summaryrefslogtreecommitdiff
path: root/gtk2_ardour/region_view.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-04-08 21:37:02 +0200
committerRobin Gareus <robin@gareus.org>2019-04-08 22:39:22 +0200
commit37aaa2d11b47cbaf3f33bf2e7744cc899050d666 (patch)
tree008f631e373e4cbcf79dd7dc423a2b6341ee0940 /gtk2_ardour/region_view.cc
parent8f5f0f298bbe5a673655e3f163621608f32018ea (diff)
NO-OP: whitespace, alignment
Diffstat (limited to 'gtk2_ardour/region_view.cc')
-rw-r--r--gtk2_ardour/region_view.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk2_ardour/region_view.cc b/gtk2_ardour/region_view.cc
index 128b848aa8..a0e2fb77f6 100644
--- a/gtk2_ardour/region_view.cc
+++ b/gtk2_ardour/region_view.cc
@@ -854,7 +854,7 @@ RegionView::trim_front (samplepos_t new_bound, bool no_overlap, const int32_t su
_region->trim_front (new_bound, sub_num);
if (no_overlap) {
- // Get the next region on the left of this region and shrink/expand it.
+ /* Get the next region on the left of this region and shrink/expand it. */
boost::shared_ptr<Playlist> playlist (_region->playlist());
boost::shared_ptr<Region> region_left = playlist->find_next_region (pre_trim_first_sample, End, 0);
@@ -864,7 +864,7 @@ RegionView::trim_front (samplepos_t new_bound, bool no_overlap, const int32_t su
regions_touching = true;
}
- // Only trim region on the left if the first sample has gone beyond the left region's last sample.
+ /* Only trim region on the left if the first sample has gone beyond the left region's last sample. */
if (region_left != 0 && (region_left->last_sample() > _region->first_sample() || regions_touching)) {
region_left->trim_end (_region->first_sample() - 1);
}
@@ -872,7 +872,7 @@ RegionView::trim_front (samplepos_t new_bound, bool no_overlap, const int32_t su
region_changed (ARDOUR::bounds_change);
- return (pre_trim_first_sample != _region->first_sample()); //return true if we actually changed something
+ return (pre_trim_first_sample != _region->first_sample()); // return true if we actually changed something
}
bool
@@ -887,7 +887,7 @@ RegionView::trim_end (samplepos_t new_bound, bool no_overlap, const int32_t sub_
_region->trim_end (new_bound, sub_num);
if (no_overlap) {
- // Get the next region on the right of this region and shrink/expand it.
+ /* Get the next region on the right of this region and shrink/expand it. */
boost::shared_ptr<Playlist> playlist (_region->playlist());
boost::shared_ptr<Region> region_right = playlist->find_next_region (pre_trim_last_sample, Start, 1);
@@ -897,7 +897,7 @@ RegionView::trim_end (samplepos_t new_bound, bool no_overlap, const int32_t sub_
regions_touching = true;
}
- // Only trim region on the right if the last sample has gone beyond the right region's first sample.
+ /* Only trim region on the right if the last sample has gone beyond the right region's first sample. */
if (region_right != 0 && (region_right->first_sample() < _region->last_sample() || regions_touching)) {
region_right->trim_front (_region->last_sample() + 1, sub_num);
}
@@ -908,7 +908,7 @@ RegionView::trim_end (samplepos_t new_bound, bool no_overlap, const int32_t sub_
region_changed (PropertyChange (ARDOUR::Properties::length));
}
- return (pre_trim_last_sample != _region->last_sample()); //return true if we actually changed something
+ return (pre_trim_last_sample != _region->last_sample()); // return true if we actually changed something
}