projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Small fixes and tidy-ups spotted by cppcheck.
[dcpomatic.git]
/
src
/
wx
/
audio_plot.cc
diff --git
a/src/wx/audio_plot.cc
b/src/wx/audio_plot.cc
index 641ddd503aa7fc781167f616d5489059dde8bcb7..16930ffd870ab55724d6753ea0e91eabcb8160ca 100644
(file)
--- a/
src/wx/audio_plot.cc
+++ b/
src/wx/audio_plot.cc
@@
-280,7
+280,7
@@
AudioPlot::plot_rms (wxGraphicsPath& path, int channel, Metrics const & metrics)
p += pow (*j, 2);
}
- if (
smoothing.size() > 0
) {
+ if (
!smoothing.empty ()
) {
p = sqrt (p / smoothing.size ());
}