Mercurial > hg > svgui
comparison layer/WaveformLayer.cpp @ 1405:4c359c2b220c fix-static-analysis
Fixes from clang modernize-use-override
author | Chris Cannam |
---|---|
date | Thu, 22 Nov 2018 14:55:38 +0000 |
parents | 28075cc658c9 |
children | c8a6fd3f9dff |
comparison
equal
deleted
inserted
replaced
1404:a33d38247631 | 1405:4c359c2b220c |
---|---|
917 } | 917 } |
918 break; | 918 break; |
919 | 919 |
920 case MeterScale: | 920 case MeterScale: |
921 if (!mergingChannels) { | 921 if (!mergingChannels) { |
922 double r0 = fabs(AudioLevel::multiplier_to_preview | 922 double r0 = std::abs(AudioLevel::multiplier_to_preview |
923 (range.min() * gain, m)); | 923 (range.min() * gain, m)); |
924 double r1 = fabs(AudioLevel::multiplier_to_preview | 924 double r1 = std::abs(AudioLevel::multiplier_to_preview |
925 (range.max() * gain, m)); | 925 (range.max() * gain, m)); |
926 rangeTop = std::max(r0, r1); | 926 rangeTop = std::max(r0, r1); |
927 meanTop = std::min(r0, r1); | 927 meanTop = std::min(r0, r1); |
928 if (mixingChannels) rangeBottom = meanTop; | 928 if (mixingChannels) rangeBottom = meanTop; |
929 else rangeBottom = AudioLevel::multiplier_to_preview | 929 else rangeBottom = AudioLevel::multiplier_to_preview |