summaryrefslogtreecommitdiff
path: root/fxjs/cfxjse_engine.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-02-26 21:51:32 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-02-26 21:51:32 +0000
commite24d5a885ecde400936796b104f1950f756d90d2 (patch)
treeaaed0fe0a5ac137107ef9c29a53e107c39dddccd /fxjs/cfxjse_engine.cpp
parent0bc02c152bd0c178a5946196e2054a5cdc7650f4 (diff)
downloadpdfium-e24d5a885ecde400936796b104f1950f756d90d2.tar.xz
Get rid of some static variables.
These are generally cheap enough to compute as needed, rather than keeping around in memory all the time (plus the memory for the static flag the compiler generates to check if initialized). Change-Id: If3a5365521f6a7781e66fb11f04883a5c673ee11 Reviewed-on: https://pdfium-review.googlesource.com/27150 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs/cfxjse_engine.cpp')
-rw-r--r--fxjs/cfxjse_engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/cfxjse_engine.cpp b/fxjs/cfxjse_engine.cpp
index 47911f8a2d..da117f5272 100644
--- a/fxjs/cfxjse_engine.cpp
+++ b/fxjs/cfxjse_engine.cpp
@@ -521,7 +521,7 @@ bool CFXJSE_Engine::QueryVariableValue(CXFA_Node* pScriptNode,
}
void CFXJSE_Engine::RemoveBuiltInObjs(CFXJSE_Context* pContext) const {
- static const ByteStringView OBJ_NAME[2] = {"Number", "Date"};
+ const ByteStringView OBJ_NAME[2] = {"Number", "Date"};
std::unique_ptr<CFXJSE_Value> pObject = pContext->GetGlobalObject();
auto hProp = pdfium::MakeUnique<CFXJSE_Value>(GetIsolate());
for (int i = 0; i < 2; ++i) {