diff options
Diffstat (limited to 'xfa/fxfa')
-rw-r--r-- | xfa/fxfa/app/xfa_ffapp.cpp | 8 | ||||
-rw-r--r-- | xfa/fxfa/xfa_ffapp.h | 2 |
2 files changed, 4 insertions, 6 deletions
diff --git a/xfa/fxfa/app/xfa_ffapp.cpp b/xfa/fxfa/app/xfa_ffapp.cpp index d60d48fa75..06cad02253 100644 --- a/xfa/fxfa/app/xfa_ffapp.cpp +++ b/xfa/fxfa/app/xfa_ffapp.cpp @@ -37,9 +37,7 @@ FX_FILESIZE CXFA_FileRead::GetSize() { return dwSize; } -FX_BOOL CXFA_FileRead::ReadBlock(void* buffer, - FX_FILESIZE offset, - size_t size) { +bool CXFA_FileRead::ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) { int32_t iCount = m_Data.GetSize(); int32_t index = 0; while (index < iCount) { @@ -58,13 +56,13 @@ FX_BOOL CXFA_FileRead::ReadBlock(void* buffer, FXSYS_memcpy(buffer, acc.GetData() + offset, dwRead); size -= dwRead; if (size == 0) { - return TRUE; + return true; } buffer = (uint8_t*)buffer + dwRead; offset = 0; index++; } - return FALSE; + return false; } void CXFA_FileRead::Release() { diff --git a/xfa/fxfa/xfa_ffapp.h b/xfa/fxfa/xfa_ffapp.h index 5e8289538b..543d78c2ee 100644 --- a/xfa/fxfa/xfa_ffapp.h +++ b/xfa/fxfa/xfa_ffapp.h @@ -31,7 +31,7 @@ class CXFA_FileRead : public IFX_SeekableReadStream { // IFX_SeekableReadStream FX_FILESIZE GetSize() override; - FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override; + bool ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override; void Release() override; protected: |