summaryrefslogtreecommitdiff
path: root/xfa/src/fxfa
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-12-02 14:47:04 -0800
committerTom Sepez <tsepez@chromium.org>2015-12-02 14:47:04 -0800
commitefa402a8016b6a1dbb02c1d5892db675e7d6f350 (patch)
treef0b924e309bee4691ff8422572c75bb8a5a9cc76 /xfa/src/fxfa
parent9263e71cb259ab372d32722ee64e1a183b4b6088 (diff)
downloadpdfium-efa402a8016b6a1dbb02c1d5892db675e7d6f350.tar.xz
Fix XFA build under chromium checkout
Add () to suppress gcc-style error about assignment in conditionals. TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/1491403002 .
Diffstat (limited to 'xfa/src/fxfa')
-rw-r--r--xfa/src/fxfa/src/app/xfa_ffpageview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/src/fxfa/src/app/xfa_ffpageview.cpp b/xfa/src/fxfa/src/app/xfa_ffpageview.cpp
index c083c2b141..0780ab7e0f 100644
--- a/xfa/src/fxfa/src/app/xfa_ffpageview.cpp
+++ b/xfa/src/fxfa/src/app/xfa_ffpageview.cpp
@@ -63,7 +63,7 @@ IXFA_Widget* CXFA_FFPageView::GetWidgetByPos(FX_FLOAT fx, FX_FLOAT fy) {
}
IXFA_WidgetIterator* pIterator = CreateWidgetIterator();
CXFA_FFWidget* pWidget = nullptr;
- while (pWidget = static_cast<CXFA_FFWidget*>(pIterator->MoveToNext())) {
+ while ((pWidget = static_cast<CXFA_FFWidget*>(pIterator->MoveToNext()))) {
if (!(pWidget->GetStatus() & XFA_WIDGETSTATUS_Visible)) {
continue;
}