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 /xfa/fxfa/parser | |
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 'xfa/fxfa/parser')
-rw-r--r-- | xfa/fxfa/parser/cxfa_dataexporter.cpp | 4 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_node.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fxfa/parser/cxfa_dataexporter.cpp b/xfa/fxfa/parser/cxfa_dataexporter.cpp index 0c702fe53c..70748f2666 100644 --- a/xfa/fxfa/parser/cxfa_dataexporter.cpp +++ b/xfa/fxfa/parser/cxfa_dataexporter.cpp @@ -8,6 +8,7 @@ #include <vector> +#include "core/fxcrt/cfx_memorystream.h" #include "core/fxcrt/fx_basic.h" #include "core/fxcrt/fx_codepage.h" #include "core/fxcrt/xml/cfx_xmldoc.h" @@ -224,8 +225,7 @@ void RegenerateFormFile_Changed(CXFA_Node* pNode, if (!pRichTextXML) break; - CFX_RetainPtr<IFX_MemoryStream> pMemStream = - IFX_MemoryStream::Create(true); + auto pMemStream = pdfium::MakeRetain<CFX_MemoryStream>(true); auto pTempStream = pdfium::MakeRetain<CFX_SeekableStreamProxy>(pMemStream, true); diff --git a/xfa/fxfa/parser/cxfa_node.cpp b/xfa/fxfa/parser/cxfa_node.cpp index a3c9ee42e0..d6d2ece428 100644 --- a/xfa/fxfa/parser/cxfa_node.cpp +++ b/xfa/fxfa/parser/cxfa_node.cpp @@ -13,6 +13,7 @@ #include <vector> #include "core/fxcrt/cfx_decimal.h" +#include "core/fxcrt/cfx_memorystream.h" #include "core/fxcrt/fx_codepage.h" #include "core/fxcrt/fx_extension.h" #include "core/fxcrt/xml/cfx_xmlelement.h" @@ -1406,8 +1407,7 @@ void CXFA_Node::Script_NodeClass_SaveXML(CFXJSE_Arguments* pArguments) { } XFA_DataExporter_DealWithDataGroupNode(this); } - CFX_RetainPtr<IFX_MemoryStream> pMemoryStream = - IFX_MemoryStream::Create(true); + auto pMemoryStream = pdfium::MakeRetain<CFX_MemoryStream>(true); auto pStream = pdfium::MakeRetain<CFX_SeekableStreamProxy>(pMemoryStream, true); pStream->SetCodePage(FX_CODEPAGE_UTF8); |