summaryrefslogtreecommitdiff
path: root/fpdfsdk/cpdfsdk_interform.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-08-13 22:50:02 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-13 22:50:02 +0000
commitf0260b2cccb9e6c59413a20040dccf5551fb6882 (patch)
tree7fcb8b5c36eb3e6a967860277a242c79015e6cba /fpdfsdk/cpdfsdk_interform.cpp
parent2ee811f24c98ac3900a164118ab976be6c3c9bab (diff)
downloadpdfium-f0260b2cccb9e6c59413a20040dccf5551fb6882.tar.xz
Change CFDF_Document::ParseMemory() to use pdfium::span.
Change-Id: I1e9b02f0cb2628d41bc1c6bdcfcfa09c36faf97e Reviewed-on: https://pdfium-review.googlesource.com/39990 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/cpdfsdk_interform.cpp')
-rw-r--r--fpdfsdk/cpdfsdk_interform.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/fpdfsdk/cpdfsdk_interform.cpp b/fpdfsdk/cpdfsdk_interform.cpp
index 55b9f7cc44..b9256aac35 100644
--- a/fpdfsdk/cpdfsdk_interform.cpp
+++ b/fpdfsdk/cpdfsdk_interform.cpp
@@ -79,8 +79,7 @@ bool IsFormFieldTypeXFA(FormFieldType fieldType) {
#endif // PDF_ENABLE_XFA
bool FDFToURLEncodedData(std::vector<uint8_t>* pBuffer) {
- std::unique_ptr<CFDF_Document> pFDF =
- CFDF_Document::ParseMemory(pBuffer->data(), pBuffer->size());
+ std::unique_ptr<CFDF_Document> pFDF = CFDF_Document::ParseMemory(*pBuffer);
if (!pFDF)
return true;