summaryrefslogtreecommitdiff
path: root/xfa
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-04-20 06:24:13 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-20 06:24:13 -0700
commita5532791cbe6e931338ea98c612c8bb6bc74f712 (patch)
treee8ff8289d32c76e30744452ba73e3dd045bab2a8 /xfa
parent84b26ec6ba8193235ce0df817dec5c0f1da29841 (diff)
downloadpdfium-a5532791cbe6e931338ea98c612c8bb6bc74f712.tar.xz
Cleanups from prior CLs.
This cleans up the Initialize methods and the ownership in CPDF_Creator. Review URL: https://codereview.chromium.org/1902713003
Diffstat (limited to 'xfa')
-rw-r--r--xfa/fxfa/parser/xfa_basic_imp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/xfa_basic_imp.cpp b/xfa/fxfa/parser/xfa_basic_imp.cpp
index 04cd0cdcb3..631b7c10ca 100644
--- a/xfa/fxfa/parser/xfa_basic_imp.cpp
+++ b/xfa/fxfa/parser/xfa_basic_imp.cpp
@@ -340,7 +340,7 @@ const XFA_METHODINFO* XFA_GetMethodByName(XFA_ELEMENT eElement,
}
int32_t iElementIndex = eElement;
while (iElementIndex != -1) {
- XFA_SCRIPTHIERARCHY const* scriptIndex = g_XFAScriptIndex + iElementIndex;
+ const XFA_SCRIPTHIERARCHY* scriptIndex = g_XFAScriptIndex + iElementIndex;
int32_t icount = scriptIndex->wMethodCount;
if (icount == 0) {
iElementIndex = scriptIndex->wParentIndex;
@@ -372,7 +372,7 @@ const XFA_SCRIPTATTRIBUTEINFO* XFA_GetScriptAttributeByName(
}
int32_t iElementIndex = eElement;
while (iElementIndex != -1) {
- XFA_SCRIPTHIERARCHY const* scriptIndex = g_XFAScriptIndex + iElementIndex;
+ const XFA_SCRIPTHIERARCHY* scriptIndex = g_XFAScriptIndex + iElementIndex;
int32_t icount = scriptIndex->wAttributeCount;
if (icount == 0) {
iElementIndex = scriptIndex->wParentIndex;