diff options
author | André Nusser <andre.nusser@googlemail.com> | 2016-03-28 11:21:51 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2016-03-29 22:19:49 +0200 |
commit | 5e6e9d83bc0c04e3721f2674f9a33e172e524b2d (patch) | |
tree | 1f97ddf497845a6246237b6c41118baaf2611dcd /src/saxparser.h | |
parent | 8c585aa006741b95c1175afcdb01cdd3d8d2d7db (diff) |
Use unordered_map instead of map in the parsers.
Diffstat (limited to 'src/saxparser.h')
-rw-r--r-- | src/saxparser.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saxparser.h b/src/saxparser.h index b4d9823..92197d1 100644 --- a/src/saxparser.h +++ b/src/saxparser.h @@ -27,7 +27,7 @@ #pragma once #include <string> -#include <map> +#include <unordered_map> #include <expat.h> #include <fstream> @@ -43,7 +43,7 @@ public: virtual int parseString(const std::string& str, const std::string& xml_source_name = ""); protected: - using attr_t = std::map<std::string, std::string>; + using attr_t = std::unordered_map<std::string, std::string>; virtual void characterData(const std::string& data) {} virtual void startTag(const std::string& name, const attr_t& attr) {} |