summaryrefslogtreecommitdiff
path: root/core/fxcrt/cfx_bitstream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/cfx_bitstream.cpp')
-rw-r--r--core/fxcrt/cfx_bitstream.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fxcrt/cfx_bitstream.cpp b/core/fxcrt/cfx_bitstream.cpp
index 7cf6d36adf..114b5a9d2a 100644
--- a/core/fxcrt/cfx_bitstream.cpp
+++ b/core/fxcrt/cfx_bitstream.cpp
@@ -10,9 +10,9 @@
#include "core/fxcrt/fx_system.h"
-CFX_BitStream::CFX_BitStream(const uint8_t* pData, uint32_t dwSize)
- : m_BitPos(0), m_BitSize(dwSize * 8), m_pData(pData) {
- ASSERT(dwSize <= std::numeric_limits<uint32_t>::max() / 8);
+CFX_BitStream::CFX_BitStream(pdfium::span<const uint8_t> pData)
+ : m_BitPos(0), m_BitSize(pData.size() * 8), m_pData(pData.data()) {
+ ASSERT(pData.size() <= std::numeric_limits<uint32_t>::max() / 8);
}
CFX_BitStream::~CFX_BitStream() {}