summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/configparser.h4
-rw-r--r--src/drumkitparser.h2
-rw-r--r--src/saxparser.h4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/configparser.h b/src/configparser.h
index 79f0cb1..29e47b0 100644
--- a/src/configparser.h
+++ b/src/configparser.h
@@ -26,7 +26,7 @@
*/
#pragma once
-#include <map>
+#include <unordered_map>
#include "saxparser.h"
@@ -42,6 +42,6 @@ public:
std::string value(const std::string& name, const std::string& def = "");
private:
- std::map<std::string, std::string> values;
+ std::unordered_map<std::string, std::string> values;
std::string* str;
};
diff --git a/src/drumkitparser.h b/src/drumkitparser.h
index f857590..b0c8d8f 100644
--- a/src/drumkitparser.h
+++ b/src/drumkitparser.h
@@ -46,7 +46,7 @@ private:
DrumKit& kit;
std::string path;
- std::map<std::string, std::string> channelmap;
+ std::unordered_map<std::string, std::string> channelmap;
std::string instr_file;
std::string instr_name;
std::string instr_group;
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) {}