diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-11-24 09:50:51 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-11-24 09:50:51 -0800 |
commit | 50d12ada784ad3ba3f9ed6935d59f1ce828695e5 (patch) | |
tree | 27caed4654213e5433256147a7c6b1b085692a32 /fpdfsdk/src/javascript/JS_Runtime.cpp | |
parent | a2167107bbcef6a3e3687d49a5b1e62503391316 (diff) | |
download | pdfium-50d12ada784ad3ba3f9ed6935d59f1ce828695e5.tar.xz |
Introduce "underlying types" to abstract XFA differences.
See the comment in fsdk_define.h. Also tidy up a bit,
and remove dead DeletePages(). This should help us
match master more closely (given corresponding changes
on the master side).
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1473503002 .
Diffstat (limited to 'fpdfsdk/src/javascript/JS_Runtime.cpp')
-rw-r--r-- | fpdfsdk/src/javascript/JS_Runtime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/src/javascript/JS_Runtime.cpp b/fpdfsdk/src/javascript/JS_Runtime.cpp index ac6e99d1cd..b195b42957 100644 --- a/fpdfsdk/src/javascript/JS_Runtime.cpp +++ b/fpdfsdk/src/javascript/JS_Runtime.cpp @@ -93,7 +93,7 @@ CJS_Runtime::~CJS_Runtime() { for (auto* obs : m_observers) obs->OnDestroyed(); - for (int i = 0; i < m_ContextArray.GetSize(); i++) + for (int i = 0, sz = m_ContextArray.GetSize(); i < sz; i++) delete m_ContextArray.GetAt(i); m_ContextArray.RemoveAll(); |