Revert "replace two more instances of !! with implicit use of operator bool()"

This reverts commit e8eff9fb9c2fa6fc518404c2f9b731f8c28d3a23.

OS X compiler gets confused by this change.
This commit is contained in:
Paul Davis 2015-05-20 10:29:20 -04:00
parent 8ac11386a6
commit da3df9c1d1
1 changed files with 2 additions and 2 deletions

View File

@ -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) {