OMNIBUS COMMIT: prefer const XMLNode::property method (and provide a real one)

This commit is contained in:
Paul Davis 2016-05-04 23:09:37 -04:00
parent 9b3b1d945f
commit 17ace643e4
94 changed files with 294 additions and 254 deletions

View file

@ -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) {