From 1b36b90f2e33f5a80e6ae9b22821a623a9d62782 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 20 Nov 2017 20:35:48 +0000 Subject: Convert picture methods to return the string This CL converts CXFA_BindData::GetPicture and CXFA_WidgetData::GetPictureContent to return the WideString instead of taking an out param. The original bool result was never checked. Change-Id: I4503d53ac7276edea811a28c34c7d8cc4cb50572 Reviewed-on: https://pdfium-review.googlesource.com/18810 Reviewed-by: Ryan Harrison Commit-Queue: dsinclair --- xfa/fxfa/parser/cxfa_widgetdata.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fxfa/parser/cxfa_widgetdata.h') diff --git a/xfa/fxfa/parser/cxfa_widgetdata.h b/xfa/fxfa/parser/cxfa_widgetdata.h index 12e811361b..84369f7177 100644 --- a/xfa/fxfa/parser/cxfa_widgetdata.h +++ b/xfa/fxfa/parser/cxfa_widgetdata.h @@ -120,7 +120,7 @@ class CXFA_WidgetData : public CXFA_DataData { int32_t GetHorizontalScrollPolicy(); int32_t GetNumberOfCells(); bool SetValue(const WideString& wsValue, XFA_VALUEPICTURE eValueType); - bool GetPictureContent(WideString& wsPicture, XFA_VALUEPICTURE ePicture); + WideString GetPictureContent(XFA_VALUEPICTURE ePicture); IFX_Locale* GetLocal(); bool GetValue(WideString& wsValue, XFA_VALUEPICTURE eValueType); bool GetNormalizeDataValue(const WideString& wsValue, -- cgit v1.2.3