diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-21 16:36:40 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-21 16:36:40 +0000 |
commit | 000b95b3c9dd7c7fbfbd6359404a09dfdc2d5226 (patch) | |
tree | 9371de34885148dbdfaca46d12face201bf9c3ea /xfa/fxfa/parser/cxfa_datadata.h | |
parent | 93446500616ad2c89d91b0ff75ff6d8d6dcc4427 (diff) | |
download | pdfium-000b95b3c9dd7c7fbfbd6359404a09dfdc2d5226.tar.xz |
Rename CXFA_DataData::TryMeasure
This CL renames CXFA_DataData::TryMeasure to TryMeasureAsFloat and
changes to return an Optional instead of a bool with an out-param.
Change-Id: I5adb75e3b8a2fb19330b33c90111f59f8c8cf722
Reviewed-on: https://pdfium-review.googlesource.com/18910
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_datadata.h')
-rw-r--r-- | xfa/fxfa/parser/cxfa_datadata.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/cxfa_datadata.h b/xfa/fxfa/parser/cxfa_datadata.h index ff5aa2a3cf..a77e4512cb 100644 --- a/xfa/fxfa/parser/cxfa_datadata.h +++ b/xfa/fxfa/parser/cxfa_datadata.h @@ -25,9 +25,7 @@ class CXFA_DataData { XFA_Element GetElementType() const; protected: - bool TryMeasure(XFA_Attribute eAttr, - float& fValue, - bool bUseDefault = false) const; + pdfium::Optional<float> TryMeasureAsFloat(XFA_Attribute attr) const; CXFA_Node* m_pNode; }; |