summaryrefslogtreecommitdiff
path: root/xfa/src/fdp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2016-02-22 12:19:42 -0800
committerLei Zhang <thestig@chromium.org>2016-02-22 12:19:42 -0800
commitd6b15fc92cb30cfc346fe28379d0aa8a24cbf601 (patch)
treeb37e5c9851595ce5111438498a219d467720dd6e /xfa/src/fdp
parent2373da22a2e754ae9b0e7d913da0ce2e925f76a0 (diff)
downloadpdfium-d6b15fc92cb30cfc346fe28379d0aa8a24cbf601.tar.xz
Define NDEBUG for Release builds.
Also fix -Wunused warnings as a result of this change. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1717063002 .
Diffstat (limited to 'xfa/src/fdp')
-rw-r--r--xfa/src/fdp/src/css/fde_csscache.cpp4
-rw-r--r--xfa/src/fdp/src/css/fde_cssstyleselector.cpp4
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) {