1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 07:43:54 +02:00

Another std::min, more auto & decltype, remove more casts

This commit is contained in:
Paul Licameli
2016-08-28 16:11:56 -04:00
parent e29c455967
commit 6043638e31
5 changed files with 16 additions and 18 deletions

View File

@@ -1488,7 +1488,7 @@ bool Sequence::Append(samplePtr buffer, sampleFormat format,
(length =
(pLastBlock = &mBlock.back())->f->GetLength()) < mMinSamples) {
SeqBlock &lastBlock = *pLastBlock;
const sampleCount addLen = std::min(mMaxSamples - length, len);
const auto addLen = std::min(mMaxSamples - length, len);
Read(buffer2.ptr(), mSampleFormat, lastBlock, 0, length);