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/cxfa_textprovider.cpp | |
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/cxfa_textprovider.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_textprovider.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xfa/fxfa/cxfa_textprovider.cpp b/xfa/fxfa/cxfa_textprovider.cpp index edefc2960c..876e0b1708 100644 --- a/xfa/fxfa/cxfa_textprovider.cpp +++ b/xfa/fxfa/cxfa_textprovider.cpp @@ -132,9 +132,7 @@ bool CXFA_TextProvider::IsCheckButtonAndAutoWidth() { XFA_Element eType = m_pWidgetAcc->GetUIType(); if (eType != XFA_Element::CheckButton) return false; - - float fWidth = 0; - return !m_pWidgetAcc->TryWidth(fWidth); + return !m_pWidgetAcc->TryWidth(); } bool CXFA_TextProvider::GetEmbbedObj(bool bURI, |