NO-OP: whitespace

This commit is contained in:
Robin Gareus 2017-06-17 02:40:46 +02:00
parent 1d28665f86
commit d88da33949

View file

@ -625,9 +625,9 @@ Editor::nudge_backward_capture_offset ()
} }
struct RegionSelectionPositionSorter { struct RegionSelectionPositionSorter {
bool operator() (RegionView* a, RegionView* b) { bool operator() (RegionView* a, RegionView* b) {
return a->region()->position() < b->region()->position(); return a->region()->position() < b->region()->position();
} }
}; };
void void
@ -3170,8 +3170,8 @@ Editor::separate_regions_between (const TimeSelection& ts)
} }
struct PlaylistState { struct PlaylistState {
boost::shared_ptr<Playlist> playlist; boost::shared_ptr<Playlist> playlist;
XMLNode* before; XMLNode* before;
}; };
/** Take tracks from get_tracks_for_range_action and cut any regions /** Take tracks from get_tracks_for_range_action and cut any regions
@ -3569,9 +3569,9 @@ Editor::align_regions (RegionPoint what)
} }
struct RegionSortByTime { struct RegionSortByTime {
bool operator() (const RegionView* a, const RegionView* b) { bool operator() (const RegionView* a, const RegionView* b) {
return a->region()->position() < b->region()->position(); return a->region()->position() < b->region()->position();
} }
}; };
void void
@ -4234,11 +4234,13 @@ struct AutomationRecord {
const AutomationLine* line; ///< line this came from const AutomationLine* line; ///< line this came from
boost::shared_ptr<Evoral::ControlList> copy; ///< copied events for the cut buffer boost::shared_ptr<Evoral::ControlList> copy; ///< copied events for the cut buffer
}; };
struct PointsSelectionPositionSorter { struct PointsSelectionPositionSorter {
bool operator() (ControlPoint* a, ControlPoint* b) { bool operator() (ControlPoint* a, ControlPoint* b) {
return (*(a->model()))->when < (*(b->model()))->when; return (*(a->model()))->when < (*(b->model()))->when;
} }
}; };
/** Cut, copy or clear selected automation points. /** Cut, copy or clear selected automation points.
* @param op Operation (Cut, Copy or Clear) * @param op Operation (Cut, Copy or Clear)
*/ */
@ -4388,16 +4390,16 @@ Editor::cut_copy_midi (CutCopyOp op)
} }
struct lt_playlist { struct lt_playlist {
bool operator () (const PlaylistState& a, const PlaylistState& b) { bool operator () (const PlaylistState& a, const PlaylistState& b) {
return a.playlist < b.playlist; return a.playlist < b.playlist;
} }
}; };
struct PlaylistMapping { struct PlaylistMapping {
TimeAxisView* tv; TimeAxisView* tv;
boost::shared_ptr<Playlist> pl; boost::shared_ptr<Playlist> pl;
PlaylistMapping (TimeAxisView* tvp) : tv (tvp) {} PlaylistMapping (TimeAxisView* tvp) : tv (tvp) {}
}; };
/** Remove `clicked_regionview' */ /** Remove `clicked_regionview' */
@ -4710,7 +4712,7 @@ Editor::cut_copy_ranges (CutCopyOp op)
void void
Editor::paste (float times, bool from_context) Editor::paste (float times, bool from_context)
{ {
DEBUG_TRACE (DEBUG::CutNPaste, "paste to preferred edit pos\n"); DEBUG_TRACE (DEBUG::CutNPaste, "paste to preferred edit pos\n");
MusicFrame where (get_preferred_edit_position (EDIT_IGNORE_NONE, from_context), 0); MusicFrame where (get_preferred_edit_position (EDIT_IGNORE_NONE, from_context), 0);
paste_internal (where.frame, times, 0); paste_internal (where.frame, times, 0);
} }
@ -4731,7 +4733,7 @@ Editor::mouse_paste ()
void void
Editor::paste_internal (framepos_t position, float times, const int32_t sub_num) Editor::paste_internal (framepos_t position, float times, const int32_t sub_num)
{ {
DEBUG_TRACE (DEBUG::CutNPaste, string_compose ("apparent paste position is %1\n", position)); DEBUG_TRACE (DEBUG::CutNPaste, string_compose ("apparent paste position is %1\n", position));
if (cut_buffer->empty(internal_editing())) { if (cut_buffer->empty(internal_editing())) {
return; return;
@ -4739,7 +4741,7 @@ Editor::paste_internal (framepos_t position, float times, const int32_t sub_num)
if (position == max_framepos) { if (position == max_framepos) {
position = get_preferred_edit_position(); position = get_preferred_edit_position();
DEBUG_TRACE (DEBUG::CutNPaste, string_compose ("preferred edit position is %1\n", position)); DEBUG_TRACE (DEBUG::CutNPaste, string_compose ("preferred edit position is %1\n", position));
} }
if (position == last_paste_pos) { if (position == last_paste_pos) {
@ -4756,8 +4758,8 @@ Editor::paste_internal (framepos_t position, float times, const int32_t sub_num)
TrackViewList ts; TrackViewList ts;
if (!selection->tracks.empty()) { if (!selection->tracks.empty()) {
/* If there is a track selection, paste into exactly those tracks and /* If there is a track selection, paste into exactly those tracks and
only those tracks. This allows the user to be explicit and override * only those tracks. This allows the user to be explicit and override
the below "do the reasonable thing" logic. */ * the below "do the reasonable thing" logic. */
ts = selection->tracks.filter_to_unique_playlists (); ts = selection->tracks.filter_to_unique_playlists ();
sort_track_selection (ts); sort_track_selection (ts);
} else { } else {
@ -5539,7 +5541,7 @@ Editor::insert_patch_change (bool from_context)
MidiRegionView* first = dynamic_cast<MidiRegionView*> (rs.front ()); MidiRegionView* first = dynamic_cast<MidiRegionView*> (rs.front ());
Evoral::PatchChange<Evoral::Beats> empty (Evoral::Beats(), 0, 0, 0); Evoral::PatchChange<Evoral::Beats> empty (Evoral::Beats(), 0, 0, 0);
PatchChangeDialog d (0, _session, empty, first->instrument_info(), Gtk::Stock::ADD); PatchChangeDialog d (0, _session, empty, first->instrument_info(), Gtk::Stock::ADD);
if (d.run() == RESPONSE_CANCEL) { if (d.run() == RESPONSE_CANCEL) {
return; return;
@ -7795,32 +7797,31 @@ Editor::remove_time (framepos_t pos, framecnt_t frames, InsertTimeOption opt,
void void
Editor::fit_selection () Editor::fit_selection ()
{ {
if (!selection->tracks.empty()) { if (!selection->tracks.empty()) {
fit_tracks (selection->tracks); fit_tracks (selection->tracks);
} else { } else {
TrackViewList tvl; TrackViewList tvl;
/* no selected tracks - use tracks with selected regions */ /* no selected tracks - use tracks with selected regions */
if (!selection->regions.empty()) { if (!selection->regions.empty()) {
for (RegionSelection::iterator r = selection->regions.begin(); r != selection->regions.end(); ++r) { for (RegionSelection::iterator r = selection->regions.begin(); r != selection->regions.end(); ++r) {
tvl.push_back (&(*r)->get_time_axis_view ()); tvl.push_back (&(*r)->get_time_axis_view ());
} }
if (!tvl.empty()) {
fit_tracks (tvl);
}
} else if (internal_editing()) {
/* no selected tracks, or regions, but in internal edit mode, so follow the mouse and use
the entered track
*/
if (entered_track) {
tvl.push_back (entered_track);
fit_tracks (tvl);
}
}
}
if (!tvl.empty()) {
fit_tracks (tvl);
}
} else if (internal_editing()) {
/* no selected tracks, or regions, but in internal edit mode, so follow the mouse and use
* the entered track
*/
if (entered_track) {
tvl.push_back (entered_track);
fit_tracks (tvl);
}
}
}
} }
void void
@ -7844,11 +7845,11 @@ Editor::fit_tracks (TrackViewList & tracks)
} }
/* compute the per-track height from: /* compute the per-track height from:
*
total canvas visible height - * total canvas visible height
height that will be taken by visible children of selected * - height that will be taken by visible children of selected tracks
tracks - height of the ruler/hscroll area * - height of the ruler/hscroll area
*/ */
uint32_t h = (uint32_t) floor ((trackviews_height() - child_heights) / visible_tracks); uint32_t h = (uint32_t) floor ((trackviews_height() - child_heights) / visible_tracks);
double first_y_pos = DBL_MAX; double first_y_pos = DBL_MAX;
@ -7961,7 +7962,7 @@ Editor::start_visual_state_op (uint32_t n)
void void
Editor::cancel_visual_state_op (uint32_t n) Editor::cancel_visual_state_op (uint32_t n)
{ {
goto_visual_state (n); goto_visual_state (n);
} }
void void