diff options
author | Lei Zhang <thestig@chromium.org> | 2015-08-13 15:40:18 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-08-13 15:40:18 -0700 |
commit | e00660b5fa41956db06c557807b68a1117d1b70b (patch) | |
tree | e3c0bd280a2ee1d3a978d55db259724327281e21 /fpdfsdk/include/javascript/JS_Object.h | |
parent | 0434f5b8ec8de0e89714f301826e9e3bbf617fbf (diff) | |
download | pdfium-e00660b5fa41956db06c557807b68a1117d1b70b.tar.xz |
Merge to XFA: Remove if checks after new.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1287863002 .
(cherry picked from commit 388a3b0b8d6f75d47978c08299300f121f04884c)
Review URL: https://codereview.chromium.org/1292653002 .
Diffstat (limited to 'fpdfsdk/include/javascript/JS_Object.h')
-rw-r--r-- | fpdfsdk/include/javascript/JS_Object.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/fpdfsdk/include/javascript/JS_Object.h b/fpdfsdk/include/javascript/JS_Object.h index fe8a91f471..caed92b034 100644 --- a/fpdfsdk/include/javascript/JS_Object.h +++ b/fpdfsdk/include/javascript/JS_Object.h @@ -109,11 +109,10 @@ struct JS_TIMER_MAPARRAY { if (JS_TIMER_MAP* pMap = m_Array.GetAt(i)) pMap->pTimer = pTimer; } else { - if (JS_TIMER_MAP* pMap = new JS_TIMER_MAP) { - pMap->nID = nIndex; - pMap->pTimer = pTimer; - m_Array.Add(pMap); - } + JS_TIMER_MAP* pMap = new JS_TIMER_MAP; + pMap->nID = nIndex; + pMap->pTimer = pTimer; + m_Array.Add(pMap); } } |