Small fixes and tidy-ups spotted by cppcheck.
[dcpomatic.git] / src / wx / audio_plot.cc
index 641ddd503aa7fc781167f616d5489059dde8bcb7..16930ffd870ab55724d6753ea0e91eabcb8160ca 100644 (file)
@@ -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 ());
                }