summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_widgetacc.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-21 21:59:45 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-21 21:59:45 +0000
commit96d6f741b3c106ba0e48a05692910f64cf1e5e09 (patch)
tree07fc97f427a308bffd995ae9a77aa2dbac9972eb /xfa/fxfa/cxfa_widgetacc.cpp
parentb06d3f8d7658eeab6624f66aef690a7f4b44936e (diff)
downloadpdfium-96d6f741b3c106ba0e48a05692910f64cf1e5e09.tar.xz
Cleanup CXFA_ParaData
This CL fixes the return types and makes the CXFA_ParaData methods const. Change-Id: Ifb63b46e826d9741682d992d7fc1ee37c772fb41 Reviewed-on: https://pdfium-review.googlesource.com/19070 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_widgetacc.cpp')
-rw-r--r--xfa/fxfa/cxfa_widgetacc.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/xfa/fxfa/cxfa_widgetacc.cpp b/xfa/fxfa/cxfa_widgetacc.cpp
index 26ba231533..816e2a2204 100644
--- a/xfa/fxfa/cxfa_widgetacc.cpp
+++ b/xfa/fxfa/cxfa_widgetacc.cpp
@@ -1257,6 +1257,9 @@ bool CXFA_WidgetAcc::FindSplitPos(int32_t iBlockIndex, float& fCalcHeight) {
case XFA_ATTRIBUTEENUM_Bottom:
fStartOffset += (fHeight - fTextHeight + fSpaceAbove);
break;
+ default:
+ NOTREACHED();
+ break;
}
}
if (fStartOffset < 0.1f)