Replace XFA_HDOC with IXFA_Doc*
[pdfium.git] / xfa / src / fxfa / src / app / xfa_ffapp.cpp
index abd0246..ea51369 100644 (file)
@@ -212,7 +212,7 @@ IXFA_DocHandler* CXFA_FFApp::GetDocHandler()
     }\r
     return m_pDocHandler;\r
 }\r
-XFA_HDOC CXFA_FFApp::CreateDoc(IXFA_DocProvider* pProvider, IFX_FileRead* pStream, FX_BOOL bTakeOverFile)\r
+IXFA_Doc* CXFA_FFApp::CreateDoc(IXFA_DocProvider* pProvider, IFX_FileRead* pStream, FX_BOOL bTakeOverFile)\r
 {\r
     CXFA_FFDoc* pDoc = FX_NEW CXFA_FFDoc(this, pProvider);\r
     if (!pDoc) {\r
@@ -223,9 +223,9 @@ XFA_HDOC CXFA_FFApp::CreateDoc(IXFA_DocProvider* pProvider, IFX_FileRead* pStrea
         delete pDoc;\r
         pDoc = NULL;\r
     }\r
-    return (XFA_HDOC)pDoc;\r
+    return pDoc;\r
 }\r
-XFA_HDOC CXFA_FFApp::CreateDoc(IXFA_DocProvider* pProvider, CPDF_Document *pPDFDoc)\r
+IXFA_Doc* CXFA_FFApp::CreateDoc(IXFA_DocProvider* pProvider, CPDF_Document *pPDFDoc)\r
 {\r
     if (pPDFDoc == NULL) {\r
         return NULL;\r
@@ -239,7 +239,7 @@ XFA_HDOC CXFA_FFApp::CreateDoc(IXFA_DocProvider* pProvider, CPDF_Document *pPDFD
         delete pDoc;\r
         pDoc = NULL;\r
     }\r
-    return (XFA_HDOC)pDoc;\r
+    return pDoc;\r
 }\r
 \r
 void CXFA_FFApp::SetDefaultFontMgr(IXFA_FontMgr* pFontMgr)\r