Normalize XML property name style, preserving old session loading (on load _ will be converted to -).

Still to go:  Non-consistent PBD tag names, colours.


git-svn-id: svn://localhost/ardour2/branches/3.0@3872 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2008-10-05 23:14:48 +00:00
parent 14a40f32f6
commit 6b0d22268b
15 changed files with 61 additions and 56 deletions

View file

@ -475,6 +475,12 @@ XMLProperty::XMLProperty(const string &n, const string &v)
: _name(n),
_value(v)
{
// Normalize property name (replace '_' with '-' as old session are inconsistent)
for (size_t i = 0; i < _name.length(); ++i) {
if (_name[i] == '_') {
_name[i] = '-';
}
}
}
XMLProperty::~XMLProperty()