1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Normalised lambda whitespace

This commit is contained in:
ed 2020-06-05 09:12:15 +01:00
parent d510b73cdf
commit b5214a341e
33 changed files with 58 additions and 58 deletions

View file

@ -33,7 +33,7 @@ private:
template<typename InterpolatorType>
void runInterplatorTests (const String& interpolatorName)
{
auto createGaussian = [](std::vector<float>& destination, float scale, float centreInSamples, float width)
auto createGaussian = [] (std::vector<float>& destination, float scale, float centreInSamples, float width)
{
for (size_t i = 0; i < destination.size(); ++i)
{
@ -44,7 +44,7 @@ private:
FloatVectorOperations::multiply (destination.data(), scale, (int) destination.size());
};
auto findGaussianPeak = [](const std::vector<float>& input) -> float
auto findGaussianPeak = [] (const std::vector<float>& input) -> float
{
auto max = std::max_element (std::begin (input), std::end (input));
auto maxPrev = max - 1;
@ -55,7 +55,7 @@ private:
return quadraticMaxLoc + (float) std::distance (std::begin (input), max);
};
auto expectAllElementsWithin = [this](const std::vector<float>& v1, const std::vector<float>& v2, float tolerance)
auto expectAllElementsWithin = [this] (const std::vector<float>& v1, const std::vector<float>& v2, float tolerance)
{
expectEquals ((int) v1.size(), (int) v2.size());

View file

@ -522,8 +522,8 @@ public:
return result;
};
auto compareData = [this](const AudioBuffer<float>& test,
const AudioBuffer<float>& reference)
auto compareData = [this] (const AudioBuffer<float>& test,
const AudioBuffer<float>& reference)
{
for (int i = 0; i < test.getNumSamples(); ++i)
expectWithinAbsoluteError (test.getSample (0, i),