summaryrefslogtreecommitdiff
path: root/core/src/fxcrt/xml_int.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-06-10 14:33:37 -0700
committerTom Sepez <tsepez@chromium.org>2015-06-10 14:33:37 -0700
commitd7e5cc754a937605d1f73db5e7967c58ddd80742 (patch)
treeed28e012c4d6a46b7f29f15a0c060474c27d4286 /core/src/fxcrt/xml_int.h
parentbfa9a824a20f37c2dd7111012b46c929cf2ed8a0 (diff)
downloadpdfium-d7e5cc754a937605d1f73db5e7967c58ddd80742.tar.xz
Merge to XFA: Remove typdefs for pointer types in fx_system.h.
Original Review URL: https://codereview.chromium.org/1171733003 R=thestig@chromium.org Review URL: https://codereview.chromium.org/1178613002.
Diffstat (limited to 'core/src/fxcrt/xml_int.h')
-rw-r--r--core/src/fxcrt/xml_int.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/src/fxcrt/xml_int.h b/core/src/fxcrt/xml_int.h
index 4155a39ffa..0220301d17 100644
--- a/core/src/fxcrt/xml_int.h
+++ b/core/src/fxcrt/xml_int.h
@@ -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);