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

Unified Diff: third_party/WebKit/Source/wtf/HashTraits.h

Issue 2386843002: reflow comments in wtf (Closed)
Patch Set: comments (heh!) Created 4 years, 2 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 | « third_party/WebKit/Source/wtf/HashTable.h ('k') | third_party/WebKit/Source/wtf/HexNumber.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/HashTraits.h
diff --git a/third_party/WebKit/Source/wtf/HashTraits.h b/third_party/WebKit/Source/wtf/HashTraits.h
index 199b2c684864c4b062e417ffa5a1a394fbd82eeb..061ae6a809d268ae3aa1fc0b76c378e154c2a8e4 100644
--- a/third_party/WebKit/Source/wtf/HashTraits.h
+++ b/third_party/WebKit/Source/wtf/HashTraits.h
@@ -1,5 +1,6 @@
/*
- * Copyright (C) 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All rights reserved.
+ * Copyright (C) 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All rights
+ * reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -247,8 +248,8 @@ struct HashTraits<std::unique_ptr<T>>
static PeekOutType peek(std::nullptr_t) { return nullptr; }
static void constructDeletedValue(std::unique_ptr<T>& slot, bool) {
- // Dirty trick: implant an invalid pointer to unique_ptr. Destructor isn't called for deleted buckets,
- // so this is okay.
+ // Dirty trick: implant an invalid pointer to unique_ptr. Destructor isn't
+ // called for deleted buckets, so this is okay.
new (NotNull, &slot) std::unique_ptr<T>(reinterpret_cast<T*>(1u));
}
static bool isDeletedValue(const std::unique_ptr<T>& value) {
« no previous file with comments | « third_party/WebKit/Source/wtf/HashTable.h ('k') | third_party/WebKit/Source/wtf/HexNumber.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698