From c9a9ad622030ef51caa48e7b04a9a5b2929b5f94 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Thu, 1 Sep 2016 10:01:14 -0400 Subject: [PATCH] Fix incorrect comment, use auto --- src/Sequence.cpp | 2 +- src/effects/TwoPassSimpleMono.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Sequence.cpp b/src/Sequence.cpp index a29f93d78..467258cdb 100644 --- a/src/Sequence.cpp +++ b/src/Sequence.cpp @@ -578,7 +578,7 @@ bool Sequence::Paste(sampleCount s, const Sequence *src) const auto srcLastTwoLen = penultimate.f->GetLength() + srcBlock[srcNumBlocks - 1].f->GetLength(); - const sampleCount rightSplit = splitBlock.f->GetLength() - splitPoint; + const auto rightSplit = splitBlock.f->GetLength() - splitPoint; const auto rightLen = rightSplit + srcLastTwoLen; SampleBuffer sampleBuffer(std::max(leftLen, rightLen), mSampleFormat); diff --git a/src/effects/TwoPassSimpleMono.cpp b/src/effects/TwoPassSimpleMono.cpp index 46a90c861..0e1a7c30c 100644 --- a/src/effects/TwoPassSimpleMono.cpp +++ b/src/effects/TwoPassSimpleMono.cpp @@ -95,7 +95,7 @@ bool EffectTwoPassSimpleMono::ProcessPass() //ProcessOne() takes a track, transforms it to bunch of buffer-blocks, -//and executes ProcessSimpleMono on these blocks +//and executes TwoBufferProcessPass1 or TwoBufferProcessPass2 on these blocks bool EffectTwoPassSimpleMono::ProcessOne(WaveTrack * track, sampleCount start, sampleCount end) {