aboutsummaryrefslogtreecommitdiff
path: root/src/support/dom
diff options
context:
space:
mode:
authorAdrian Kummerländer2014-04-26 15:17:07 +0200
committerAdrian Kummerländer2014-04-26 15:17:07 +0200
commit7e7b112e6c00bcce0b339652748079cf7c9f1430 (patch)
tree645cab42adbfa79f0a32ed85f00805f73263d9f6 /src/support/dom
parent0b611b7bd28851fe8096b3d2c121c68e231ada11 (diff)
downloadInputXSLT-7e7b112e6c00bcce0b339652748079cf7c9f1430.tar
InputXSLT-7e7b112e6c00bcce0b339652748079cf7c9f1430.tar.gz
InputXSLT-7e7b112e6c00bcce0b339652748079cf7c9f1430.tar.bz2
InputXSLT-7e7b112e6c00bcce0b339652748079cf7c9f1430.tar.lz
InputXSLT-7e7b112e6c00bcce0b339652748079cf7c9f1430.tar.xz
InputXSLT-7e7b112e6c00bcce0b339652748079cf7c9f1430.tar.zst
InputXSLT-7e7b112e6c00bcce0b339652748079cf7c9f1430.zip
Moved DomDocumentCache instances back into external function class
* A global DomDocumentCache instance would require key prefixing * switched internal data structure to std::unordered_map for average constant time access
Diffstat (limited to 'src/support/dom')
-rw-r--r--src/support/dom/document_cache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/support/dom/document_cache.h b/src/support/dom/document_cache.h
index 4447a18..287a316 100644
--- a/src/support/dom/document_cache.h
+++ b/src/support/dom/document_cache.h
@@ -1,7 +1,7 @@
#ifndef INPUTXSLT_SRC_SUPPORT_DOM_DOCUMENT_CACHE_H_
#define INPUTXSLT_SRC_SUPPORT_DOM_DOCUMENT_CACHE_H_
-#include <map>
+#include <unordered_map>
#include <string>
#include <memory>
@@ -16,7 +16,7 @@ class DomDocumentCache {
item* get(const std::string&);
private:
- std::map<std::string, std::unique_ptr<item>> map_;
+ std::unordered_map<std::string, std::unique_ptr<item>> map_;
};