From 9c5f9537fad69da276179b8dc48696add5156743 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Fri, 11 Sep 2020 17:51:05 +0200 Subject: [PATCH] Adopt the underscore convention for member variables --- src/sfizz/modulations/ModMatrix.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/sfizz/modulations/ModMatrix.cpp b/src/sfizz/modulations/ModMatrix.cpp index a9ca3a38..a60397c8 100644 --- a/src/sfizz/modulations/ModMatrix.cpp +++ b/src/sfizz/modulations/ModMatrix.cpp @@ -49,7 +49,7 @@ struct ModMatrix::Impl { absl::flat_hash_map sourceIndex_; absl::flat_hash_map targetIndex_; - int maxRegionIdx { -1 }; + int maxRegionIdx_ { -1 }; std::vector> sourceRegionIndex_; std::vector> targetRegionIndex_; @@ -78,7 +78,7 @@ void ModMatrix::clear() impl.targets_.clear(); impl.sourceRegionIndex_.clear(); impl.targetRegionIndex_.clear(); - impl.maxRegionIdx = -1; + impl.maxRegionIdx_ = -1; } void ModMatrix::setSampleRate(double sampleRate) @@ -131,8 +131,8 @@ ModMatrix::SourceId ModMatrix::registerSource(const ModKey& key, ModGenerator& g source.buffer.resize(impl.samplesPerBlock_); impl.sourceIndex_[key] = id.number(); - if (key.region().number() > impl.maxRegionIdx) - impl.maxRegionIdx = key.region().number(); + if (key.region().number() > impl.maxRegionIdx_) + impl.maxRegionIdx_ = key.region().number(); gen.setSampleRate(impl.sampleRate_); gen.setSamplesPerBlock(impl.samplesPerBlock_); @@ -157,8 +157,8 @@ ModMatrix::TargetId ModMatrix::registerTarget(const ModKey& key) target.buffer.resize(impl.samplesPerBlock_); impl.targetIndex_[key] = id.number(); - if (key.region().number() > impl.maxRegionIdx) - impl.maxRegionIdx = key.region().number(); + if (key.region().number() > impl.maxRegionIdx_) + impl.maxRegionIdx_ = key.region().number(); return id; } @@ -205,8 +205,8 @@ void ModMatrix::init() { Impl& impl = *impl_; - if (impl.maxRegionIdx >= 0) { - const size_t numRegions = impl.maxRegionIdx + 1; + if (impl.maxRegionIdx_ >= 0) { + const size_t numRegions = impl.maxRegionIdx_ + 1; impl.sourceRegionIndex_.resize(numRegions); impl.targetRegionIndex_.resize(numRegions); }