diff options
author | Lei Zhang <thestig@chromium.org> | 2018-08-29 18:16:40 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-29 18:16:40 +0000 |
commit | d2e4698c5daeba74a231574d63a11a858920ea59 (patch) | |
tree | 6086877972dcd3afad8f483817d1830acbc04f9c /fxjs/cfxjse_engine.h | |
parent | ee68cd18a22e120d5f341199be7e82bfda888da8 (diff) | |
download | pdfium-d2e4698c5daeba74a231574d63a11a858920ea59.tar.xz |
Reduce the number of CFXJSE_ResolveProcessor::GetNodeHelper() calls.
In CFXJSE_Engine::ResolveObjects(), all the calls are to the same
object. Just grab a pointer and reuse that. Also make GetNodeHelper()
non-const.
Change-Id: I92a0bb1577a11d4d067e6d9beed27fcadeb694dc
Reviewed-on: https://pdfium-review.googlesource.com/41573
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxjs/cfxjse_engine.h')
-rw-r--r-- | fxjs/cfxjse_engine.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/cfxjse_engine.h b/fxjs/cfxjse_engine.h index bf561e7732..2279eea8e4 100644 --- a/fxjs/cfxjse_engine.h +++ b/fxjs/cfxjse_engine.h @@ -118,7 +118,7 @@ class CFXJSE_Engine final : public CFX_V8 { // CacheList holds the List items so we can clean them up when we're done. std::vector<std::unique_ptr<CXFA_List>> m_CacheList; std::vector<CXFA_Node*>* m_pScriptNodeArray = nullptr; - std::unique_ptr<CFXJSE_ResolveProcessor> m_ResolveProcessor; + const std::unique_ptr<CFXJSE_ResolveProcessor> m_ResolveProcessor; std::unique_ptr<CFXJSE_FormCalcContext> m_FM2JSContext; CXFA_Object* m_pThisObject = nullptr; XFA_AttributeEnum m_eRunAtType = XFA_AttributeEnum::Client; |