diff options
author | Robin Gareus <robin@gareus.org> | 2016-04-08 21:21:38 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-04-08 21:21:38 +0200 |
commit | ff05c823124135274e6274252eaa0487b93b7df1 (patch) | |
tree | 780efd07c5b9af2f5b0a7347bb5ea5da48b302cd /libs | |
parent | 3def1b2830528319d2b720267e2f153dd17d72c0 (diff) |
Revert "experimental session-save speedup" -- needs C++11
This reverts commit d1dcedaccfd5adfd661724476003410d5d251756.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/pbd/pbd/xml++.h | 4 | ||||
-rw-r--r-- | libs/pbd/xml++.cc | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libs/pbd/pbd/xml++.h b/libs/pbd/pbd/xml++.h index dac8de67cd..0e1bd09cc2 100644 --- a/libs/pbd/pbd/xml++.h +++ b/libs/pbd/pbd/xml++.h @@ -29,7 +29,7 @@ #include <string> #include <vector> -#include <unordered_map> +#include <map> #include <cstdio> #include <cstdarg> @@ -50,7 +50,7 @@ typedef XMLNodeList::const_iterator XMLNodeConstIterator; typedef std::vector<XMLProperty*> XMLPropertyList; typedef XMLPropertyList::iterator XMLPropertyIterator; typedef XMLPropertyList::const_iterator XMLPropertyConstIterator; -typedef std::unordered_map<std::string, XMLProperty*> XMLPropertyMap; +typedef std::map<std::string, XMLProperty*> XMLPropertyMap; class LIBPBD_API XMLTree { public: diff --git a/libs/pbd/xml++.cc b/libs/pbd/xml++.cc index b8fff12ad0..6d260f2525 100644 --- a/libs/pbd/xml++.cc +++ b/libs/pbd/xml++.cc @@ -408,7 +408,7 @@ XMLProperty* XMLNode::property(const char* n) { string ns(n); - unordered_map<string,XMLProperty*>::iterator iter; + map<string,XMLProperty*>::iterator iter; if ((iter = _propmap.find(ns)) != _propmap.end()) { return iter->second; @@ -420,7 +420,7 @@ XMLNode::property(const char* n) XMLProperty* XMLNode::property(const string& ns) { - unordered_map<string,XMLProperty*>::iterator iter; + map<string,XMLProperty*>::iterator iter; if ((iter = _propmap.find(ns)) != _propmap.end()) { return iter->second; @@ -433,7 +433,7 @@ XMLProperty* XMLNode::add_property(const char* n, const string& v) { string ns(n); - unordered_map<string,XMLProperty*>::iterator iter; + map<string,XMLProperty*>::iterator iter; if ((iter = _propmap.find(ns)) != _propmap.end()) { iter->second->set_value (v); |