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

Unified Diff: src/utils.h

Issue 1737023: Turn some usages of NewArray with DeleteArray in the same scope into ScopedVector or SmartPointer. (Closed)
Patch Set: Disabling implicit constructors Created 10 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 | « src/platform-win32.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils.h
diff --git a/src/utils.h b/src/utils.h
index fa249475aec88b87639cf432573db5e56f60dcde..7c818671d52f0d7462b41d7eaf1c26a278904ec0 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -412,6 +412,9 @@ class ScopedVector : public Vector<T> {
~ScopedVector() {
DeleteArray(this->start());
}
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(ScopedVector);
};
« no previous file with comments | « src/platform-win32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698