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

Unified Diff: xfa/fgas/crt/fgas_memory.h

Issue 2208423002: Use smart pointers for class owned pointers under xfa/fde (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: one more change Created 4 years, 4 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 | « xfa/fde/tto/fde_textout.cpp ('k') | xfa/fgas/crt/fgas_memory.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fgas/crt/fgas_memory.h
diff --git a/xfa/fgas/crt/fgas_memory.h b/xfa/fgas/crt/fgas_memory.h
index a83933c7a5cff6e34a9f8dd9fda284333b4c65dd..1034c417d77378462d9cce878f5a38bbde543e40 100644
--- a/xfa/fgas/crt/fgas_memory.h
+++ b/xfa/fgas/crt/fgas_memory.h
@@ -7,6 +7,8 @@
#ifndef XFA_FGAS_CRT_FGAS_MEMORY_H_
#define XFA_FGAS_CRT_FGAS_MEMORY_H_
+#include <memory>
+
#include "core/fxcrt/include/fx_memory.h"
#include "core/fxcrt/include/fx_system.h"
@@ -21,9 +23,9 @@ class IFX_MemoryAllocator {
virtual void* Alloc(size_t size) = 0;
virtual void Free(void* pBlock) = 0;
- static IFX_MemoryAllocator* Create(FX_ALLOCTYPE eType,
- size_t chunkSize,
- size_t blockSize);
+ static std::unique_ptr<IFX_MemoryAllocator> Create(FX_ALLOCTYPE eType,
+ size_t chunkSize,
+ size_t blockSize);
};
class CFX_Target {
« no previous file with comments | « xfa/fde/tto/fde_textout.cpp ('k') | xfa/fgas/crt/fgas_memory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698