Index: fpdfsdk/include/javascript/JS_Object.h |
diff --git a/fpdfsdk/include/javascript/JS_Object.h b/fpdfsdk/include/javascript/JS_Object.h |
index fe8a91f4712bc8dbc9885b26896e871af4a451a6..caed92b034a9c5dab13a5880486c8538ee339def 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); |
} |
} |