diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-10-17 21:53:43 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-17 21:53:43 +0000 |
commit | a8a69e742f57a58a61555242751542fbc3fc5267 (patch) | |
tree | cc83f7fdb87aa2f4aee3ca15c119a589d032e359 /fxjs/cjs_global.cpp | |
parent | d78358d506c2e700a1177f93bdb915154eefae5c (diff) | |
download | pdfium-a8a69e742f57a58a61555242751542fbc3fc5267.tar.xz |
Nest CJS_GlobalData_Element in CJS_GlobalData.
Why settle for _ when you can have :: ?
No functional change. Move some ctors/initializers out of line
and avoid assignment in some ifs.
Change-Id: I792bca35f38aa8c4ff41d776a789c5525c5d5113
Reviewed-on: https://pdfium-review.googlesource.com/c/44212
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cjs_global.cpp')
-rw-r--r-- | fxjs/cjs_global.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/cjs_global.cpp b/fxjs/cjs_global.cpp index a683ed8bfc..62c528422f 100644 --- a/fxjs/cjs_global.cpp +++ b/fxjs/cjs_global.cpp @@ -328,7 +328,7 @@ void CJS_Global::UpdateGlobalPersistentVariables() { return; for (int i = 0, sz = m_pGlobalData->GetSize(); i < sz; i++) { - CJS_GlobalData_Element* pData = m_pGlobalData->GetAt(i); + CJS_GlobalData::Element* pData = m_pGlobalData->GetAt(i); switch (pData->data.nType) { case JS_GlobalDataType::NUMBER: SetGlobalVariables(pData->data.sKey, JS_GlobalDataType::NUMBER, |