diff options
Diffstat (limited to 'core/src/fxcrt/extension.h')
-rw-r--r-- | core/src/fxcrt/extension.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/src/fxcrt/extension.h b/core/src/fxcrt/extension.h index e83671a670..2c084eca2f 100644 --- a/core/src/fxcrt/extension.h +++ b/core/src/fxcrt/extension.h @@ -33,7 +33,7 @@ class CFX_CRTFileAccess : public IFX_FileAccess public: CFX_CRTFileAccess() : m_RefCount(0) {} - virtual void Release() + virtual void Release() { if (--m_RefCount == 0) delete this; @@ -45,7 +45,7 @@ public: return (IFX_FileAccess*)this; } - virtual FX_BOOL Init(const CFX_WideStringC& wsPath) + virtual FX_BOOL Init(const CFX_WideStringC& wsPath) { m_path = wsPath; m_RefCount = 1; @@ -109,7 +109,7 @@ public: if (offset < 0 || size < 0) { return FALSE; } - + FX_SAFE_FILESIZE pos = size; pos += offset; @@ -243,7 +243,7 @@ public: if (!range.IsValid() || range.ValueOrDie() > m_nCurSize) { return FALSE; } - + m_nOffset = (size_t)offset, m_nSize = (size_t)size; m_bUseRange = TRUE; m_nCurPos = m_nOffset; @@ -263,7 +263,7 @@ public: if (m_bUseRange) { safeOffset += m_nOffset; } - + if (!safeOffset.IsValid()) { return FALSE; } @@ -322,7 +322,7 @@ public: offset += (FX_FILESIZE)m_nOffset; } if (m_dwFlags & FX_MEMSTREAM_Consecutive) { - FX_SAFE_SIZE_T newPos = size; + FX_SAFE_SIZE_T newPos = size; newPos += offset; if (!newPos.IsValid()) return FALSE; |