From 3f9549e7f00b649471c4d658bbfb6bf031b8f53e Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 16 Nov 2017 14:23:07 +0000 Subject: Convert TryNamespace to optional This CL changes CJX_Node::TryNamespace to return a pdfium::Optional instead of a bool with an out parameter. Change-Id: I50ccb3544179108d156d763c25e03abab4306c19 Reviewed-on: https://pdfium-review.googlesource.com/18551 Commit-Queue: dsinclair Reviewed-by: Tom Sepez --- fxjs/cjx_node.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fxjs/cjx_node.h') diff --git a/fxjs/cjx_node.h b/fxjs/cjx_node.h index cb6b6867fd..686c54c164 100644 --- a/fxjs/cjx_node.h +++ b/fxjs/cjx_node.h @@ -108,7 +108,7 @@ class CJX_Node : public CJX_Object { XFA_MAPDATABLOCKCALLBACKINFO* pCallbackInfo); void* GetObject(XFA_Attribute eAttr); - bool TryNamespace(WideString& wsNamespace); + pdfium::Optional TryNamespace(); void MergeAllData(CXFA_Node* pDstModule); -- cgit v1.2.3