Switch to unified view

a/src/conftree.cpp b/src/conftree.cpp
...
...
505
        erase(*it, sk);
505
        erase(*it, sk);
506
    }
506
    }
507
    return write();
507
    return write();
508
}
508
}
509
509
510
int ConfSimple::clear()
511
{
512
    m_submaps.clear();
513
    m_order.clear();
514
    return write();
515
}
516
510
// Walk the tree, calling user function at each node
517
// Walk the tree, calling user function at each node
511
ConfSimple::WalkerCode
518
ConfSimple::WalkerCode
512
ConfSimple::sortwalk(WalkerCode(*walker)(void *, const string&, const string&),
519
ConfSimple::sortwalk(WalkerCode(*walker)(void *, const string&, const string&),
513
                     void *clidata) const
520
                     void *clidata) const
514
{
521
{
...
...
690
            if (pos != string::npos) {
697
            if (pos != string::npos) {
691
                out << it->m_data.substr(pos) << endl;
698
                out << it->m_data.substr(pos) << endl;
692
            }
699
            }
693
            break;
700
            break;
694
        }
701
        }
702
        case ConfLine::CFL_SK:
703
            out << "<subkey>" << it->m_data << "</subkey>" << endl;
704
            break;
705
        case ConfLine::CFL_VAR:
706
            out << "<varsetting>" << it->m_data << " = " <<
707
                it->m_value << "</varsetting>" << endl;
708
            break;
695
        default:
709
        default:
696
            break;
710
            break;
697
        }
711
        }
698
    }
712
    }
699
    out << "</confcomments>\n";
713
    out << "</confcomments>\n";