From d3ae179dab3f63625e5dd3ddf0aa33176f8ee65c Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 16 Jan 2018 15:15:05 +0000 Subject: Cleanup CXFA_Fill This CL cleans up the CXFA_Fill internal getters to handle nullptr returns correctly and moves some of the logic to the specific XFA classes. Change-Id: Icac487105a026a25cc9981d00fbc152e459ad0b8 Reviewed-on: https://pdfium-review.googlesource.com/22770 Reviewed-by: Ryan Harrison Commit-Queue: dsinclair --- xfa/fxfa/parser/cxfa_fill.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xfa/fxfa/parser/cxfa_fill.h') diff --git a/xfa/fxfa/parser/cxfa_fill.h b/xfa/fxfa/parser/cxfa_fill.h index a713047c5d..dc733f5a24 100644 --- a/xfa/fxfa/parser/cxfa_fill.h +++ b/xfa/fxfa/parser/cxfa_fill.h @@ -40,10 +40,10 @@ class CXFA_Fill : public CXFA_Node { FX_ARGB GetRadialColor(); private: - CXFA_Stipple* GetStipple(); - CXFA_Radial* GetRadial(); - CXFA_Linear* GetLinear(); - CXFA_Pattern* GetPattern(); + CXFA_Stipple* GetStippleIfExists(); + CXFA_Radial* GetRadialIfExists(); + CXFA_Linear* GetLinearIfExists(); + CXFA_Pattern* GetPatternIfExists(); }; #endif // XFA_FXFA_PARSER_CXFA_FILL_H_ -- cgit v1.2.3