mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
Revert "experimental session-save speedup" -- needs C++11
This reverts commit d1dcedaccf.
This commit is contained in:
parent
3def1b2830
commit
ff05c82312
2 changed files with 5 additions and 5 deletions
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <unordered_map>
|
#include <map>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstdarg>
|
#include <cstdarg>
|
||||||
|
|
||||||
|
|
@ -50,7 +50,7 @@ typedef XMLNodeList::const_iterator XMLNodeConstIterator;
|
||||||
typedef std::vector<XMLProperty*> XMLPropertyList;
|
typedef std::vector<XMLProperty*> XMLPropertyList;
|
||||||
typedef XMLPropertyList::iterator XMLPropertyIterator;
|
typedef XMLPropertyList::iterator XMLPropertyIterator;
|
||||||
typedef XMLPropertyList::const_iterator XMLPropertyConstIterator;
|
typedef XMLPropertyList::const_iterator XMLPropertyConstIterator;
|
||||||
typedef std::unordered_map<std::string, XMLProperty*> XMLPropertyMap;
|
typedef std::map<std::string, XMLProperty*> XMLPropertyMap;
|
||||||
|
|
||||||
class LIBPBD_API XMLTree {
|
class LIBPBD_API XMLTree {
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
|
|
@ -408,7 +408,7 @@ XMLProperty*
|
||||||
XMLNode::property(const char* n)
|
XMLNode::property(const char* n)
|
||||||
{
|
{
|
||||||
string ns(n);
|
string ns(n);
|
||||||
unordered_map<string,XMLProperty*>::iterator iter;
|
map<string,XMLProperty*>::iterator iter;
|
||||||
|
|
||||||
if ((iter = _propmap.find(ns)) != _propmap.end()) {
|
if ((iter = _propmap.find(ns)) != _propmap.end()) {
|
||||||
return iter->second;
|
return iter->second;
|
||||||
|
|
@ -420,7 +420,7 @@ XMLNode::property(const char* n)
|
||||||
XMLProperty*
|
XMLProperty*
|
||||||
XMLNode::property(const string& ns)
|
XMLNode::property(const string& ns)
|
||||||
{
|
{
|
||||||
unordered_map<string,XMLProperty*>::iterator iter;
|
map<string,XMLProperty*>::iterator iter;
|
||||||
|
|
||||||
if ((iter = _propmap.find(ns)) != _propmap.end()) {
|
if ((iter = _propmap.find(ns)) != _propmap.end()) {
|
||||||
return iter->second;
|
return iter->second;
|
||||||
|
|
@ -433,7 +433,7 @@ XMLProperty*
|
||||||
XMLNode::add_property(const char* n, const string& v)
|
XMLNode::add_property(const char* n, const string& v)
|
||||||
{
|
{
|
||||||
string ns(n);
|
string ns(n);
|
||||||
unordered_map<string,XMLProperty*>::iterator iter;
|
map<string,XMLProperty*>::iterator iter;
|
||||||
|
|
||||||
if ((iter = _propmap.find(ns)) != _propmap.end()) {
|
if ((iter = _propmap.find(ns)) != _propmap.end()) {
|
||||||
iter->second->set_value (v);
|
iter->second->set_value (v);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue