Use explicit pointers
This commit is contained in:
parent
2195466055
commit
89093b1826
1 changed files with 2 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ public:
|
||||||
}
|
}
|
||||||
static void registerVoiceInHierarchy(const Region* region, Voice* voice)
|
static void registerVoiceInHierarchy(const Region* region, Voice* voice)
|
||||||
{
|
{
|
||||||
auto parent = region->parent;
|
auto* parent = region->parent;
|
||||||
while (parent != nullptr) {
|
while (parent != nullptr) {
|
||||||
parent->registerVoice(voice);
|
parent->registerVoice(voice);
|
||||||
parent = parent->getParent();
|
parent = parent->getParent();
|
||||||
|
|
@ -44,7 +44,7 @@ public:
|
||||||
}
|
}
|
||||||
static void removeVoiceFromHierarchy(const Region* region, const Voice* voice)
|
static void removeVoiceFromHierarchy(const Region* region, const Voice* voice)
|
||||||
{
|
{
|
||||||
auto parent = region->parent;
|
auto* parent = region->parent;
|
||||||
while (parent != nullptr) {
|
while (parent != nullptr) {
|
||||||
parent->removeVoice(voice);
|
parent->removeVoice(voice);
|
||||||
parent = parent->getParent();
|
parent = parent->getParent();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue