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