diff options
author | Lei Zhang <thestig@chromium.org> | 2015-06-19 14:58:28 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-06-19 14:58:28 -0700 |
commit | 568aff520b4ca33d851317a4ea88807b4fd2da40 (patch) | |
tree | 02c6409057908381d36efcd556dd8082044d5509 /xfa/src/fgas/include/fx_mem.h | |
parent | c49828916f5b0766f8d6f0fd5bf0a6cc5bd3c1ec (diff) | |
download | pdfium-568aff520b4ca33d851317a4ea88807b4fd2da40.tar.xz |
Fix -Wnon-virtual-dtor warnings on the XFA branch.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1183483003.
Diffstat (limited to 'xfa/src/fgas/include/fx_mem.h')
-rw-r--r-- | xfa/src/fgas/include/fx_mem.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xfa/src/fgas/include/fx_mem.h b/xfa/src/fgas/include/fx_mem.h index c8875e185d..6c0e1faa25 100644 --- a/xfa/src/fgas/include/fx_mem.h +++ b/xfa/src/fgas/include/fx_mem.h @@ -14,9 +14,11 @@ enum FX_ALLOCTYPE { FX_ALLOCTYPE_Fixed ,
FX_ALLOCTYPE_Dynamic ,
};
+
class IFX_MEMAllocator
{
public:
+ virtual ~IFX_MEMAllocator() {}
virtual void Release() = 0;
virtual void* Alloc(size_t size) = 0;
virtual void Free(void *pBlock) = 0;
@@ -25,10 +27,12 @@ public: virtual size_t SetDefChunkSize(size_t size) = 0;
virtual size_t GetCurrentDataSize() const = 0;
};
+
IFX_MEMAllocator* FX_CreateAllocator(FX_ALLOCTYPE eType, size_t chunkSize, size_t blockSize);
class CFX_Target
{
public:
+ virtual ~CFX_Target() {}
void* operator new(size_t size)
{
return FX_Alloc(uint8_t, size);
|