summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/app.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-08-19 14:57:42 -0700
committerCommit bot <commit-bot@chromium.org>2016-08-19 14:57:42 -0700
commita752edfd2ddc4913aeffd31b67f6fdb53e4116ae (patch)
treec36366014755593210f8dc806c24774b9066f8c3 /fpdfsdk/javascript/app.h
parentad589d7b83768f3b78ae6b9c90aa418611cc12c2 (diff)
downloadpdfium-a752edfd2ddc4913aeffd31b67f6fdb53e4116ae.tar.xz
Introduce pdfium::FakeUniquePtr for keys to sets of unique ptrs.
Review-Url: https://codereview.chromium.org/2262473002
Diffstat (limited to 'fpdfsdk/javascript/app.h')
-rw-r--r--fpdfsdk/javascript/app.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/javascript/app.h b/fpdfsdk/javascript/app.h
index 911d86586a..1efd34168c 100644
--- a/fpdfsdk/javascript/app.h
+++ b/fpdfsdk/javascript/app.h
@@ -7,8 +7,8 @@
#ifndef FPDFSDK_JAVASCRIPT_APP_H_
#define FPDFSDK_JAVASCRIPT_APP_H_
-#include <map>
#include <memory>
+#include <unordered_set>
#include <vector>
#include "fpdfsdk/javascript/JS_Define.h"
@@ -166,7 +166,7 @@ class app : public CJS_EmbedObj {
bool m_bCalculate;
bool m_bRuntimeHighLight;
- std::map<GlobalTimer*, std::unique_ptr<GlobalTimer>> m_Timers;
+ std::unordered_set<std::unique_ptr<GlobalTimer>> m_Timers;
};
class CJS_App : public CJS_Object {