diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-21 16:25:40 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-21 16:25:40 +0000 |
commit | ddc9965f60823a63c1d402e2f35e7ce093bf3ee8 (patch) | |
tree | a827bd50c477678c1d5d8759827bd865acfef99e /xfa/fxfa/parser/cxfa_margindata.h | |
parent | e6e262844037dfc66e5118bcedf1c84d57f78706 (diff) | |
download | pdfium-ddc9965f60823a63c1d402e2f35e7ce093bf3ee8.tar.xz |
Make CXFA_MarginData::Try* methods return Optional
This CL converts the CXFA_MarginData::Try{Left|Right|Top|Bottom}Inset
methods to return an Optional instead of a bool with an out param.
Change-Id: Ib48384c1670db7255b2b6388ced41f2f10fe4385
Reviewed-on: https://pdfium-review.googlesource.com/18890
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_margindata.h')
-rw-r--r-- | xfa/fxfa/parser/cxfa_margindata.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fxfa/parser/cxfa_margindata.h b/xfa/fxfa/parser/cxfa_margindata.h index 1a8b4d8be1..069aa7cc2d 100644 --- a/xfa/fxfa/parser/cxfa_margindata.h +++ b/xfa/fxfa/parser/cxfa_margindata.h @@ -21,10 +21,10 @@ class CXFA_MarginData : public CXFA_DataData { float GetRightInset() const; float GetBottomInset() const; - bool TryLeftInset(float& fInset) const; - bool TryTopInset(float& fInset) const; - bool TryRightInset(float& fInset) const; - bool TryBottomInset(float& fInset) const; + pdfium::Optional<float> TryLeftInset() const; + pdfium::Optional<float> TryTopInset() const; + pdfium::Optional<float> TryRightInset() const; + pdfium::Optional<float> TryBottomInset() const; }; #endif // XFA_FXFA_PARSER_CXFA_MARGINDATA_H_ |