summaryrefslogtreecommitdiff
path: root/fxjs/cfxjse_resolveprocessor.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-08-29 18:16:40 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-29 18:16:40 +0000
commitd2e4698c5daeba74a231574d63a11a858920ea59 (patch)
tree6086877972dcd3afad8f483817d1830acbc04f9c /fxjs/cfxjse_resolveprocessor.h
parentee68cd18a22e120d5f341199be7e82bfda888da8 (diff)
downloadpdfium-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_resolveprocessor.h')
-rw-r--r--fxjs/cfxjse_resolveprocessor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/cfxjse_resolveprocessor.h b/fxjs/cfxjse_resolveprocessor.h
index 521128b62c..dea7abdc5b 100644
--- a/fxjs/cfxjse_resolveprocessor.h
+++ b/fxjs/cfxjse_resolveprocessor.h
@@ -46,7 +46,7 @@ class CFXJSE_ResolveProcessor {
int32_t iCount);
void SetCurStart(int32_t start) { m_iCurStart = start; }
- CXFA_NodeHelper* GetNodeHelper() const { return m_pNodeHelper.get(); }
+ CXFA_NodeHelper* GetNodeHelper() { return m_pNodeHelper.get(); }
private:
bool ResolveForAttributeRs(CXFA_Object* curNode,