diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-21 16:32:30 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-21 16:32:30 +0000 |
commit | 0d54f09ae49c0cf85de5fe2bd3da885c16523018 (patch) | |
tree | a94e3738194f4ba944229a6eef55218c3b35df80 /xfa/fxfa/parser/cxfa_widgetdata.h | |
parent | 4debddffd0c4cad48ecf153e2584b311b0a16791 (diff) | |
download | pdfium-0d54f09ae49c0cf85de5fe2bd3da885c16523018.tar.xz |
Convert CXFA_WidgetData methods to Optional
This CL converts the CXFA_WidgetData size methods to return Optionals
instead of boolean with an out parameter.
Change-Id: Ibf2fef5a58896abfea9865e086029377c051bdb6
Reviewed-on: https://pdfium-review.googlesource.com/18892
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_widgetdata.h')
-rw-r--r-- | xfa/fxfa/parser/cxfa_widgetdata.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xfa/fxfa/parser/cxfa_widgetdata.h b/xfa/fxfa/parser/cxfa_widgetdata.h index 9d955a3d99..309f00fe12 100644 --- a/xfa/fxfa/parser/cxfa_widgetdata.h +++ b/xfa/fxfa/parser/cxfa_widgetdata.h @@ -61,12 +61,12 @@ class CXFA_WidgetData : public CXFA_DataData { CXFA_CalculateData GetCalculateData(); CXFA_ValidateData GetValidateData(bool bModified); - bool TryWidth(float& fWidth); - bool TryHeight(float& fHeight); - bool TryMinWidth(float& fMinWidth); - bool TryMinHeight(float& fMinHeight); - bool TryMaxWidth(float& fMaxWidth); - bool TryMaxHeight(float& fMaxHeight); + pdfium::Optional<float> TryWidth(); + pdfium::Optional<float> TryHeight(); + pdfium::Optional<float> TryMinWidth(); + pdfium::Optional<float> TryMinHeight(); + pdfium::Optional<float> TryMaxWidth(); + pdfium::Optional<float> TryMaxHeight(); CXFA_BorderData GetUIBorderData(); CFX_RectF GetUIMargin(); |