Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2687)

Unified Diff: core/include/fxcrt/fx_basic.h

Issue 1130053003: Support arrays in nonstd::unique_ptr<>. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Comments, kill dead code. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | core/src/fpdfdoc/doc_bookmark.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/include/fxcrt/fx_basic.h
diff --git a/core/include/fxcrt/fx_basic.h b/core/include/fxcrt/fx_basic.h
index 275653ef9ecfbc8bc69c4cab26327ab057e061a9..bd53d9e7a4123e10754dec314e76eefacb916fb0 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:
« no previous file with comments | « no previous file | core/src/fpdfdoc/doc_bookmark.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698