diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-05-06 17:29:29 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-05-06 17:29:29 -0700 |
commit | 21031ad28a73f0633e720997d310440c5bc31ec5 (patch) | |
tree | 610fab06995fcc7577232d1a72fa519c1cfcd0ab /core/include/fxcrt | |
parent | 1fd0b107570f41cc6f378794a22d8450f5619665 (diff) | |
download | pdfium-21031ad28a73f0633e720997d310440c5bc31ec5.tar.xz |
Support arrays in nonstd::unique_ptr<>.
This mimics the std:: behaviour.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1130053003
Diffstat (limited to 'core/include/fxcrt')
-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 275653ef9e..bd53d9e7a4 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: |