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

Unified Diff: courgette/memory_allocator.h

Issue 1855133002: convert //courgette to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comment in memory_allocator.h Created 4 years, 8 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 | « courgette/encoded_program_unittest.cc ('k') | courgette/patch_generator_x86_32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/memory_allocator.h
diff --git a/courgette/memory_allocator.h b/courgette/memory_allocator.h
index 6541e9138f30772b5b7566f4a5ed607f1dfb9c09..e1d8573df8effa0baba605b2129224e99286fcd6 100644
--- a/courgette/memory_allocator.h
+++ b/courgette/memory_allocator.h
@@ -77,7 +77,8 @@ void UncheckedDelete(T* object) {
}
}
-// A deleter for scoped_ptr that will delete the object via UncheckedDelete().
+// A deleter for std::unique_ptr that will delete the object via
+// UncheckedDelete().
template <class T>
struct UncheckedDeleter {
inline void operator()(T* ptr) const { UncheckedDelete(ptr); }
« no previous file with comments | « courgette/encoded_program_unittest.cc ('k') | courgette/patch_generator_x86_32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698