From ea708c02877df7038c5f2300b037dd0eedff6f54 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 2 Nov 2017 18:18:18 +0000 Subject: Remove default values from CJX_Node::SetAttributeValue This CL removes the default parameters from SetAttributeValue and inlines into the call sites as needed. Change-Id: Ibb4e4747141a49c2367743421254c251aff71eeb Reviewed-on: https://pdfium-review.googlesource.com/17490 Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- fxjs/cjx_node.cpp | 2 +- fxjs/cjx_node.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'fxjs') diff --git a/fxjs/cjx_node.cpp b/fxjs/cjx_node.cpp index 4cebf44cd7..59ddab5db0 100644 --- a/fxjs/cjx_node.cpp +++ b/fxjs/cjx_node.cpp @@ -3396,7 +3396,7 @@ bool CJX_Node::SetScriptContent(const WideString& wsContent, pValueNode; pValueNode = pValueNode->GetNodeItem( XFA_NODEITEM_NextSibling)) { pValueNode->JSNode()->SetAttributeValue( - wsSaveTextArray[i], wsSaveTextArray[i], false); + wsSaveTextArray[i], wsSaveTextArray[i], false, false); i++; } } diff --git a/fxjs/cjx_node.h b/fxjs/cjx_node.h index 442e0d57e3..1b8ad5c079 100644 --- a/fxjs/cjx_node.h +++ b/fxjs/cjx_node.h @@ -65,8 +65,8 @@ class CJX_Node : public CJX_Object { bool GetAttribute(XFA_ATTRIBUTE eAttr, WideString& wsValue, bool bUseDefault); bool SetAttributeValue(const WideString& wsValue, const WideString& wsXMLValue, - bool bNotify = false, - bool bScriptModify = false); + bool bNotify, + bool bScriptModify); bool RemoveAttribute(const WideStringView& wsAttr); CXFA_Node* GetProperty(int32_t index, -- cgit v1.2.3