mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-07 15:05:38 +01:00
use std::min and std::max
This commit is contained in:
@@ -1628,11 +1628,10 @@ sampleCount WaveTrack::GetBestBlockSize(sampleCount s) const
|
||||
|
||||
sampleCount WaveTrack::GetMaxBlockSize() const
|
||||
{
|
||||
int maxblocksize = 0;
|
||||
decltype(GetMaxBlockSize()) maxblocksize = 0;
|
||||
for (const auto &clip : mClips)
|
||||
{
|
||||
if (clip->GetSequence()->GetMaxBlockSize() > maxblocksize)
|
||||
maxblocksize = clip->GetSequence()->GetMaxBlockSize();
|
||||
maxblocksize = std::max(maxblocksize, clip->GetSequence()->GetMaxBlockSize());
|
||||
}
|
||||
|
||||
if (maxblocksize == 0)
|
||||
|
||||
Reference in New Issue
Block a user