summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-08-29 19:32:47 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-29 19:32:47 +0000
commit1934a24ffdd8cd27b67fda6dc81cd4420d024db0 (patch)
tree514e968715388b7a86ee66bc575d2e21f11fceb7 /fpdfsdk
parentb2b1f55214688d5e3bfd5015e0a4829d2f314c27 (diff)
downloadpdfium-1934a24ffdd8cd27b67fda6dc81cd4420d024db0.tar.xz
Use pdfium::span<> in fpdf_parser_decode.h helper functions.
Change-Id: Ib0a2bd21fe4304163cf9c080e07475e7c033c299 Reviewed-on: https://pdfium-review.googlesource.com/41570 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk')
-rw-r--r--fpdfsdk/fpdf_attachment.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fpdf_attachment.cpp b/fpdfsdk/fpdf_attachment.cpp
index 6a4faf6c65..f3c1c83cf9 100644
--- a/fpdfsdk/fpdf_attachment.cpp
+++ b/fpdfsdk/fpdf_attachment.cpp
@@ -29,7 +29,7 @@ constexpr char kChecksumKey[] = "CheckSum";
ByteString CFXByteStringHexDecode(const ByteString& bsHex) {
uint8_t* result = nullptr;
uint32_t size = 0;
- HexDecode(bsHex.raw_str(), bsHex.GetLength(), &result, &size);
+ HexDecode(bsHex.AsRawSpan(), &result, &size);
ByteString bsDecoded(result, size);
FX_Free(result);
return bsDecoded;