From a112eeb4d052b1212f94e95efd83a215213da691 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 28 Jan 2015 22:52:13 +0000 Subject: Small fixes and tidy-ups spotted by cppcheck. --- src/wx/audio_plot.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wx/audio_plot.cc') diff --git a/src/wx/audio_plot.cc b/src/wx/audio_plot.cc index 641ddd503..16930ffd8 100644 --- 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 ()); } -- cgit v1.2.3