mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-04 08:55:43 +08:00
Use std::as_const (C++17 feature)
This commit is contained in:
@@ -44,7 +44,7 @@ namespace BlackCore
|
||||
QVector<float> buffer;
|
||||
m_sampleProvider->readSamples(buffer, count);
|
||||
|
||||
for (float sample : as_const(buffer))
|
||||
for (float sample : std::as_const(buffer))
|
||||
{
|
||||
const float absSample = qAbs(sample);
|
||||
if (absSample > m_maxSampleOutput) { m_maxSampleOutput = absSample; }
|
||||
|
||||
Reference in New Issue
Block a user