void sendPropertyChangeMessage (const Identifier property) { ValueTree tree (this); for (ValueTree::SharedObject* t = this; t != nullptr; t = t->parent) t->sendPropertyChangeMessage (tree, property); }
void ValueTree::SharedObject::sendPropertyChangeMessage (const Identifier& property) { ValueTree tree (this); ValueTree::SharedObject* t = this; while (t != 0) { t->sendPropertyChangeMessage (tree, property); t = t->parent; } }