From 8c068b396dedc7d29ba7c107f03b2663520c11f1 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 14 Aug 2018 19:24:06 +0000 Subject: Remove default level from FPDF_GetFieldAttr(). Make call into internal helper function. Write helper function so as to be obviously tail-recursive, and remove redundant null check. Change-Id: If29f9be66b07239b35de9ac9241d5ef72365889b Reviewed-on: https://pdfium-review.googlesource.com/40130 Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- core/fpdfdoc/cpdf_formfield.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'core/fpdfdoc/cpdf_formfield.h') diff --git a/core/fpdfdoc/cpdf_formfield.h b/core/fpdfdoc/cpdf_formfield.h index b6a4ed82a9..6f0006506f 100644 --- a/core/fpdfdoc/cpdf_formfield.h +++ b/core/fpdfdoc/cpdf_formfield.h @@ -80,11 +80,8 @@ class CPDF_InterForm; class CPDF_String; const CPDF_Object* FPDF_GetFieldAttr(const CPDF_Dictionary* pFieldDict, - const char* name, - int nLevel = 0); -CPDF_Object* FPDF_GetFieldAttr(CPDF_Dictionary* pFieldDict, - const char* name, - int nLevel = 0); + const char* name); +CPDF_Object* FPDF_GetFieldAttr(CPDF_Dictionary* pFieldDict, const char* name); WideString FPDF_GetFullName(CPDF_Dictionary* pFieldDict); -- cgit v1.2.3