diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-20 21:16:43 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-20 21:16:43 +0000 |
commit | 1699413c207c228ae7eae3d47e89adacc1146d65 (patch) | |
tree | 2a6020ff5b1d658c618ea32a04f86aaa9ee86b72 /xfa/fxfa/parser/cxfa_widgetdata.cpp | |
parent | ef2b74990f4f2a82e279ef5b8a911d89be1e83e2 (diff) | |
download | pdfium-1699413c207c228ae7eae3d47e89adacc1146d65.tar.xz |
Cleanup return types in CXFA_BoxData
This CL cleans up the return types in CXFA_BoxData to use std::tuple and
pdfium::Optional where appropriate.
Change-Id: I0790fb43769185fa4cbdd7460411a3d1120e9fa1
Reviewed-on: https://pdfium-review.googlesource.com/18812
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_widgetdata.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_widgetdata.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xfa/fxfa/parser/cxfa_widgetdata.cpp b/xfa/fxfa/parser/cxfa_widgetdata.cpp index 894411760c..cff2d6b004 100644 --- a/xfa/fxfa/parser/cxfa_widgetdata.cpp +++ b/xfa/fxfa/parser/cxfa_widgetdata.cpp @@ -379,7 +379,8 @@ CFX_RectF CXFA_WidgetData::GetUIMargin() { if (borderData) { bool bVisible = false; float fThickness = 0; - borderData.Get3DStyle(bVisible, fThickness); + int32_t iType = 0; + std::tie(iType, bVisible, fThickness) = borderData.Get3DStyle(); if (!bLeft || !bTop || !bRight || !bBottom) { std::vector<CXFA_StrokeData> strokes = borderData.GetStrokes(); if (!bTop) |