summaryrefslogtreecommitdiff
path: root/fpdfsdk/include/javascript
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-08-13 15:24:19 -0700
committerLei Zhang <thestig@chromium.org>2015-08-13 15:24:19 -0700
commit388a3b0b8d6f75d47978c08299300f121f04884c (patch)
treefadc1a463409d762d66f3f82ea75af497b9c3268 /fpdfsdk/include/javascript
parent5312f9a6ed88e653f4cfb604d892ca18da75e721 (diff)
downloadpdfium-388a3b0b8d6f75d47978c08299300f121f04884c.tar.xz
Remove if checks after new.
R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1287863002 .
Diffstat (limited to 'fpdfsdk/include/javascript')
-rw-r--r--fpdfsdk/include/javascript/JS_Object.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/fpdfsdk/include/javascript/JS_Object.h b/fpdfsdk/include/javascript/JS_Object.h
index fd63d98cbc..c0c3ab0c46 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);
}
}