summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/javascript
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-08-13 15:54:56 -0700
committerTom Sepez <tsepez@chromium.org>2015-08-13 15:54:56 -0700
commit2a0a26c94ef8131ee29ac4d466c42593cf2ff005 (patch)
tree17d540eaa507cbbd6b6facc1ff19f746334ec243 /fpdfsdk/src/javascript
parentc9a05f1c90860a97dbe4b8014bc4584bfa3a4580 (diff)
downloadpdfium-2a0a26c94ef8131ee29ac4d466c42593cf2ff005.tar.xz
Kill JS_TIMER_MAPARRAY
R=thestig@chromium.org Review URL: https://codereview.chromium.org/1286383004 .
Diffstat (limited to 'fpdfsdk/src/javascript')
-rw-r--r--fpdfsdk/src/javascript/JS_Object.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/src/javascript/JS_Object.cpp b/fpdfsdk/src/javascript/JS_Object.cpp
index eb089ed563..ef9bab971d 100644
--- a/fpdfsdk/src/javascript/JS_Object.cpp
+++ b/fpdfsdk/src/javascript/JS_Object.cpp
@@ -10,10 +10,10 @@
#include "../../include/javascript/JS_Object.h"
#include "../../include/javascript/JS_Context.h"
-JS_TIMER_MAPARRAY& GetTimeMap() {
+JSTimerMap* GetGlobalTimerMap() {
// Leak the timer array at shutdown.
- static auto* timeMap = new JS_TIMER_MAPARRAY;
- return *timeMap;
+ static auto* timeMap = new JSTimerMap;
+ return timeMap;
}
int FXJS_MsgBox(CPDFDoc_Environment* pApp,