mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
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:
parent
14a40f32f6
commit
6b0d22268b
15 changed files with 61 additions and 56 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue