summaryrefslogtreecommitdiff
path: root/tests
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2015-02-03 10:46:48 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2015-02-03 10:46:48 +0100
commit6a6bb14cb03f4203efa09985bdbc15270a4011ab (patch)
treee662770aa6ccf43ae74a6547c8b7393e7388e906 /tests
parent35ec9452c22f81279a8489364c212f08a67ed3f9 (diff)
Unity: Use unordered_map whenever possible
As iterating over it seems just fast as in the ordered version, we just speedup lookups and insertions. (bzr r3899.2.51)
Diffstat (limited to 'tests')
-rw-r--r--tests/mock-application.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mock-application.h b/tests/mock-application.h
index 4e4c0ad26..1819509f2 100644
--- a/tests/mock-application.h
+++ b/tests/mock-application.h
@@ -20,7 +20,7 @@
#ifndef TESTS_MOCK_APPLICATION_H
#define TESTS_MOCK_APPLICATION_H
-#include <map>
+#include <unordered_map>
#include <gmock/gmock.h>
#include <gio/gdesktopappinfo.h>
#include <UnityCore/GLibWrapper.h>
@@ -360,7 +360,7 @@ struct MockApplicationManager : public unity::ApplicationManager
}
private:
- typedef std::map<std::string, unity::ApplicationPtr> AppMap;
+ typedef std::unordered_map<std::string, unity::ApplicationPtr> AppMap;
AppMap app_map_;
};