Merge to XFA: Remove typdefs for pointer types in fx_system.h.
[pdfium.git] / core / src / fxcrt / xml_int.h
index 4155a39..0220301 100644 (file)
@@ -10,7 +10,7 @@
 class CXML_DataBufAcc : public IFX_BufferRead
 {
 public:
-    CXML_DataBufAcc(FX_LPCBYTE pBuffer, size_t size)
+    CXML_DataBufAcc(const uint8_t* pBuffer, size_t size)
         : m_pBuffer(pBuffer)
         , m_dwSize(size)
         , m_dwCurPos(0)
@@ -44,7 +44,7 @@ public:
         }
         return FALSE;
     }
-    virtual FX_LPCBYTE         GetBlockBuffer()
+    virtual const uint8_t*             GetBlockBuffer()
     {
         return m_pBuffer;
     }
@@ -57,7 +57,7 @@ public:
         return 0;
     }
 protected:
-    FX_LPCBYTE         m_pBuffer;
+    const uint8_t*             m_pBuffer;
     size_t                     m_dwSize;
     size_t                     m_dwCurPos;
 };
@@ -111,9 +111,9 @@ public:
         }
         return m_pFileRead->ReadBlock(m_pBuffer, m_nStart, m_dwSize);
     }
-    virtual FX_LPCBYTE         GetBlockBuffer()
+    virtual const uint8_t*             GetBlockBuffer()
     {
-        return (FX_LPCBYTE)m_pBuffer;
+        return (const uint8_t*)m_pBuffer;
     }
     virtual size_t                     GetBlockSize()
     {
@@ -125,7 +125,7 @@ public:
     }
 protected:
     IFX_FileRead       *m_pFileRead;
-    FX_LPBYTE          m_pBuffer;
+    uint8_t*           m_pBuffer;
     FX_FILESIZE                m_nStart;
     size_t                     m_dwSize;
 };
@@ -137,11 +137,11 @@ public:
     FX_BOOL                    m_bOwnedStream;
     FX_FILESIZE                m_nOffset;
     FX_BOOL                    m_bSaveSpaceChars;
-    FX_LPCBYTE         m_pBuffer;
+    const uint8_t*             m_pBuffer;
     size_t                     m_dwBufferSize;
     FX_FILESIZE                m_nBufferOffset;
     size_t                     m_dwIndex;
-    FX_BOOL                    Init(FX_LPBYTE pBuffer, size_t size);
+    FX_BOOL                    Init(uint8_t* pBuffer, size_t size);
     FX_BOOL                    Init(IFX_FileRead *pFileRead);
     FX_BOOL                    Init(IFX_BufferRead *pBuffer);
     FX_BOOL                    Init(FX_BOOL bOwndedStream);