diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-05-06 17:48:47 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-05-06 17:48:47 -0700 |
commit | 9c55287c168eb6a469fd59ad77e8a58b93d67649 (patch) | |
tree | 50238c1472919b811626309928bcf5b9ff8ef2ad /core/include/fxcrt/fx_basic.h | |
parent | dd995a3d20de128ff1e3143a531beed0c90d65c1 (diff) | |
download | pdfium-9c55287c168eb6a469fd59ad77e8a58b93d67649.tar.xz |
Merge to XFA: Support arrays in nonstd::unique_ptr<>.
Original Review URL: https://codereview.chromium.org/1130053003
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/1124353002
Diffstat (limited to 'core/include/fxcrt/fx_basic.h')
-rw-r--r-- | core/include/fxcrt/fx_basic.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/core/include/fxcrt/fx_basic.h b/core/include/fxcrt/fx_basic.h index 1ef9410fb3..de80ea7f7a 100644 --- a/core/include/fxcrt/fx_basic.h +++ b/core/include/fxcrt/fx_basic.h @@ -773,32 +773,6 @@ private: DataType m_Data[FixedSize]; DataType* m_pData; }; -template <class DataType> -class CFX_TempBuf -{ -public: - CFX_TempBuf(int size) - { - m_pData = FX_Alloc(DataType, size); - } - ~CFX_TempBuf() - { - if (m_pData) { - FX_Free(m_pData); - } - } - DataType& operator[](int i) - { - FXSYS_assert(m_pData != NULL); - return m_pData[i]; - } - operator DataType*() - { - return m_pData; - } -private: - DataType* m_pData; -}; class CFX_MapPtrToPtr { protected: |