diff options
Diffstat (limited to 'xfa/src/fdp')
-rw-r--r-- | xfa/src/fdp/src/css/fde_csscache.cpp | 4 | ||||
-rw-r--r-- | xfa/src/fdp/src/css/fde_cssstyleselector.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/xfa/src/fdp/src/css/fde_csscache.cpp b/xfa/src/fdp/src/css/fde_csscache.cpp index 5d98b98629..5909524dae 100644 --- a/xfa/src/fdp/src/css/fde_csscache.cpp +++ b/xfa/src/fdp/src/css/fde_csscache.cpp @@ -141,7 +141,7 @@ void CFDE_CSSAccelerator::OnEnterTag(IFDE_CSSTagProvider* pTag) { m_Stack.Push(item); } void CFDE_CSSAccelerator::OnLeaveTag(IFDE_CSSTagProvider* pTag) { - FDE_CSSTAGCACHE* pItem = m_Stack.GetTopElement(); - FXSYS_assert(pItem && pItem->GetTag() == pTag); + FXSYS_assert(m_Stack.GetTopElement()); + FXSYS_assert(m_Stack.GetTopElement()->GetTag() == pTag); m_Stack.Pop(); } diff --git a/xfa/src/fdp/src/css/fde_cssstyleselector.cpp b/xfa/src/fdp/src/css/fde_cssstyleselector.cpp index 815aaf5604..1bb0133e99 100644 --- a/xfa/src/fdp/src/css/fde_cssstyleselector.cpp +++ b/xfa/src/fdp/src/css/fde_cssstyleselector.cpp @@ -428,8 +428,8 @@ void CFDE_CSSStyleSelector::ComputeStyle( const IFDE_CSSDeclaration** ppDeclArray, int32_t iDeclCount, IFDE_CSSComputedStyle* pDestStyle) { - CFDE_CSSComputedStyle* pComputedStyle = (CFDE_CSSComputedStyle*)pDestStyle; - FXSYS_assert(pTag && iDeclCount >= 0 && pComputedStyle != NULL); + FXSYS_assert(iDeclCount >= 0); + FXSYS_assert(pDestStyle); FX_POSITION pos = pTag->GetFirstAttribute(); if (pos != NULL) { if (m_pInlineStyleStore == NULL) { |