diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-01-22 16:57:58 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-01-22 16:57:58 -0800 |
commit | 219e462c2a0bb9a5462c0ee43ec93ac86c9cda40 (patch) | |
tree | 04a6efd0f625d857580e9eb4965be9a83808f245 /fpdfsdk/src | |
parent | 83f96a01a2cfd64d0a370e74c3f4353eb9a102d2 (diff) | |
download | pdfium-219e462c2a0bb9a5462c0ee43ec93ac86c9cda40.tar.xz |
Use IPDF_DataAvail interface to hide CPDF_DataAvail.
Currently, no callers go through the Interface, which makes having a
separate interface class kind of pointless. After converting callers
away from using the CPDF_DataAvail concrete class, it can be moved
from the header to the .cpp file.
R=bo_xu@foxitsoftware.com
Review URL: https://codereview.chromium.org/873523002
Diffstat (limited to 'fpdfsdk/src')
-rw-r--r-- | fpdfsdk/src/fpdf_dataavail.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/src/fpdf_dataavail.cpp b/fpdfsdk/src/fpdf_dataavail.cpp index b5483f9c39..910221a5de 100644 --- a/fpdfsdk/src/fpdf_dataavail.cpp +++ b/fpdfsdk/src/fpdf_dataavail.cpp @@ -90,7 +90,7 @@ public: if (m_pDataAvail) delete m_pDataAvail; } - CPDF_DataAvail* m_pDataAvail; + IPDF_DataAvail* m_pDataAvail; CFPDF_FileAvailWrap m_FileAvail; CFPDF_FileAccessWrap m_FileRead; }; @@ -100,7 +100,7 @@ DLLEXPORT FPDF_AVAIL STDCALL FPDFAvail_Create(FX_FILEAVAIL* file_avail, FPDF_FIL CFPDF_DataAvail* pAvail = FX_NEW CFPDF_DataAvail; pAvail->m_FileAvail.Set(file_avail); pAvail->m_FileRead.Set(file); - pAvail->m_pDataAvail = FX_NEW CPDF_DataAvail(&pAvail->m_FileAvail, &pAvail->m_FileRead); + pAvail->m_pDataAvail = IPDF_DataAvail::Create(&pAvail->m_FileAvail, &pAvail->m_FileRead); return pAvail; } |