projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bdac56
)
replace two more instances of !! with implicit use of operator bool()
author
Paul Davis
<paul@linuxaudiosystems.com>
Wed, 20 May 2015 12:22:36 +0000
(08:22 -0400)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Mon, 29 Jun 2015 18:18:15 +0000
(14:18 -0400)
gtk2_ardour/midi_region_view.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/midi_region_view.cc
b/gtk2_ardour/midi_region_view.cc
index 47e5510664991640a478817f41e9bd8feac063a2..222e6a56671b60099c8d8f52710d8b3c4e6a2283 100644
(file)
--- 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) {