From ddc9965f60823a63c1d402e2f35e7ce093bf3ee8 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 21 Nov 2017 16:25:40 +0000 Subject: 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 Commit-Queue: dsinclair --- xfa/fxfa/parser/cxfa_margindata.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xfa/fxfa/parser/cxfa_margindata.h') 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 TryLeftInset() const; + pdfium::Optional TryTopInset() const; + pdfium::Optional TryRightInset() const; + pdfium::Optional TryBottomInset() const; }; #endif // XFA_FXFA_PARSER_CXFA_MARGINDATA_H_ -- cgit v1.2.3