mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 11:06:32 +01:00
OMNIBUS COMMIT: prefer const XMLNode::property method (and provide a real one)
This commit is contained in:
parent
9b3b1d945f
commit
17ace643e4
94 changed files with 294 additions and 254 deletions
|
|
@ -147,7 +147,7 @@ IOProcessor::set_state (const XMLNode& node, int version)
|
|||
return set_state_2X (node, version);
|
||||
}
|
||||
|
||||
const XMLProperty *prop;
|
||||
XMLProperty const * prop;
|
||||
const XMLNode *io_node = 0;
|
||||
|
||||
Processor::set_state(node, version);
|
||||
|
|
@ -170,7 +170,7 @@ IOProcessor::set_state (const XMLNode& node, int version)
|
|||
|
||||
if (_own_input && _input) {
|
||||
for (niter = nlist.begin(); niter != nlist.end(); ++niter) {
|
||||
const XMLProperty* prop;
|
||||
XMLProperty const * prop;
|
||||
if ((prop = (*niter)->property ("name")) != 0) {
|
||||
if (_name == prop->value()) {
|
||||
if ((prop = (*niter)->property ("direction")) != 0) {
|
||||
|
|
@ -200,7 +200,7 @@ IOProcessor::set_state (const XMLNode& node, int version)
|
|||
if (_own_output && _output) {
|
||||
for (niter = nlist.begin(); niter != nlist.end(); ++niter) {
|
||||
if ((*niter)->name() == "IO") {
|
||||
const XMLProperty* prop;
|
||||
XMLProperty const * prop;
|
||||
if ((prop = (*niter)->property ("name")) != 0) {
|
||||
if (_name == prop->value()) {
|
||||
if ((prop = (*niter)->property ("direction")) != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue