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

Unified Diff: base/lazy_instance.h

Issue 10796020: Upgrade AlignedMemory to support dynamic allocations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Documentation. Created 8 years, 5 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
Index: base/lazy_instance.h
diff --git a/base/lazy_instance.h b/base/lazy_instance.h
index 7021829e563a0facdb65c68fb7f70c2f1997891d..80043ffc1a5765f02afbabf5d3bbeeb3c3276271 100644
--- a/base/lazy_instance.h
+++ b/base/lazy_instance.h
@@ -187,7 +187,7 @@ class LazyInstance {
subtle::AtomicWord private_instance_;
// Preallocated space for the Type instance.
- base::AlignedMemory<sizeof(Type), ALIGNOF(Type)> private_buf_;
+ base::AlignedMemory<ALIGNOF(Type), sizeof(Type)> private_buf_;
private:
Type* instance() {

Powered by Google App Engine
This is Rietveld 408576698