From: Paul Davis Date: Wed, 20 May 2015 12:22:36 +0000 (-0400) Subject: replace two more instances of !! with implicit use of operator bool() X-Git-Tag: 4.2~373 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=8ac11386a6d0d5951ecde132be6aea524704cc6d;p=ardour.git replace two more instances of !! with implicit use of operator bool() --- diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc index 47e5510664..222e6a5667 100644 --- a/gtk2_ardour/midi_region_view.cc +++ b/gtk2_ardour/midi_region_view.cc @@ -2908,7 +2908,7 @@ MidiRegionView::commit_resizing (NoteBase* primary, bool at_front, double delta_ Evoral::Beats len = canvas_note->note()->time() - x_beats + (sign * snap_delta_beats); len += canvas_note->note()->length(); - if (!!len) { + if (len) { note_diff_add_change (canvas_note, MidiModel::NoteDiffCommand::Length, len); } } @@ -3019,7 +3019,7 @@ MidiRegionView::trim_note (NoteBase* event, Evoral::Beats front_delta, Evoral::B } - if (!!end_delta) { + if (end_delta) { bool can_change = true; if (end_delta < 0) { if (event->note()->length() < -end_delta) {