From f40380f454042c9783fe30260a0e3df8b32c5c92 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 12 Oct 2018 18:31:51 +0000 Subject: Rename CPDF_{Array,Dictionary}::GetCount() to size(). Make them compatible with pdfium::CollectionSize(). Change-Id: Ibef3b182e35a7eca7c656cf590462782de0cc157 Reviewed-on: https://pdfium-review.googlesource.com/c/43937 Reviewed-by: Tom Sepez Commit-Queue: Lei Zhang --- fpdfsdk/fpdf_save.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fpdfsdk/fpdf_save.cpp') diff --git a/fpdfsdk/fpdf_save.cpp b/fpdfsdk/fpdf_save.cpp index 16d7da2101..237c262c79 100644 --- a/fpdfsdk/fpdf_save.cpp +++ b/fpdfsdk/fpdf_save.cpp @@ -78,7 +78,7 @@ bool SaveXFADocumentData(CPDFXFA_Context* pContext, if (!pArray) return false; - int size = pArray->GetCount(); + int size = pArray->size(); int iFormIndex = -1; int iDataSetsIndex = -1; int iLast = size - 2; @@ -139,7 +139,7 @@ bool SaveXFADocumentData(CPDFXFA_Context* pContext, } else { CPDF_Stream* pData = pPDFDocument->NewIndirect(); pData->InitStreamFromFile(pDsfileWrite, std::move(pDataDict)); - iLast = pArray->GetCount() - 2; + iLast = pArray->size() - 2; pArray->InsertNewAt(iLast, "datasets", false); pArray->InsertAt(iLast + 1, pData->MakeReference(pPDFDocument)); } @@ -164,7 +164,7 @@ bool SaveXFADocumentData(CPDFXFA_Context* pContext, } else { CPDF_Stream* pData = pPDFDocument->NewIndirect(); pData->InitStreamFromFile(pfileWrite, std::move(pDataDict)); - iLast = pArray->GetCount() - 2; + iLast = pArray->size() - 2; pArray->InsertNewAt(iLast, "form", false); pArray->InsertAt(iLast + 1, pData->MakeReference(pPDFDocument)); } -- cgit v1.2.3