summaryrefslogtreecommitdiff
path: root/core/fxcrt/cfx_memorystream.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/cfx_memorystream.h')
-rw-r--r--core/fxcrt/cfx_memorystream.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/fxcrt/cfx_memorystream.h b/core/fxcrt/cfx_memorystream.h
index 47e491275c..99e39a8ef3 100644
--- a/core/fxcrt/cfx_memorystream.h
+++ b/core/fxcrt/cfx_memorystream.h
@@ -31,9 +31,8 @@ class CFX_MemoryStream : public IFX_SeekableStream {
private:
CFX_MemoryStream();
-
- // Takes ownership of |pBuffer|.
- CFX_MemoryStream(uint8_t* pBuffer, size_t nSize);
+ CFX_MemoryStream(std::unique_ptr<uint8_t, FxFreeDeleter> pBuffer,
+ size_t nSize);
~CFX_MemoryStream() override;
std::unique_ptr<uint8_t, FxFreeDeleter> m_data;