diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-04-20 14:11:21 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-20 18:38:55 +0000 |
commit | 283a0433b081f88275b2f7e8c04d3c41b9187ca6 (patch) | |
tree | 4f6ff921e8a7de9b7922369c97731e54f647ea33 /core/fxcrt/cfx_seekablestreamproxy.cpp | |
parent | 03f5bab415cda066855e2672154358056649c584 (diff) | |
download | pdfium-283a0433b081f88275b2f7e8c04d3c41b9187ca6.tar.xz |
Convert IFX_MemoryStream to CFX_MemoryStream
The CFX_MemoryStream is the only implementation of IFX_MemoryStream.
This CL removes the interfaces and uses CFX_MemoryStream directly.
Change-Id: I2f43fa39e82dafa7673517d214ae15fd2d0df331
Reviewed-on: https://pdfium-review.googlesource.com/4391
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/cfx_seekablestreamproxy.cpp')
-rw-r--r-- | core/fxcrt/cfx_seekablestreamproxy.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/fxcrt/cfx_seekablestreamproxy.cpp b/core/fxcrt/cfx_seekablestreamproxy.cpp index 8be2e0898f..622f56b3ec 100644 --- a/core/fxcrt/cfx_seekablestreamproxy.cpp +++ b/core/fxcrt/cfx_seekablestreamproxy.cpp @@ -17,6 +17,7 @@ #include <utility> #include <vector> +#include "core/fxcrt/cfx_memorystream.h" #include "core/fxcrt/fx_codepage.h" #include "core/fxcrt/fx_extension.h" #include "third_party/base/ptr_util.h" @@ -189,7 +190,9 @@ CFX_SeekableStreamProxy::CFX_SeekableStreamProxy( } CFX_SeekableStreamProxy::CFX_SeekableStreamProxy(uint8_t* data, FX_STRSIZE size) - : CFX_SeekableStreamProxy(IFX_MemoryStream::Create(data, size), false) {} + : CFX_SeekableStreamProxy( + pdfium::MakeRetain<CFX_MemoryStream>(data, size, false), + false) {} CFX_SeekableStreamProxy::~CFX_SeekableStreamProxy() {} |