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

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

Issue 1436153002: Apply clang-format with Chromium-style without column limit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/OwnPtr.h ('k') | third_party/WebKit/Source/wtf/PageAllocator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/OwnPtrCommon.h
diff --git a/third_party/WebKit/Source/wtf/OwnPtrCommon.h b/third_party/WebKit/Source/wtf/OwnPtrCommon.h
index 301629e82fd3cbc1e894afa97764e52fc4db2fa8..aeb215f40a0d820148e45b94b2198c19fcb87895 100644
--- a/third_party/WebKit/Source/wtf/OwnPtrCommon.h
+++ b/third_party/WebKit/Source/wtf/OwnPtrCommon.h
@@ -37,37 +37,34 @@ namespace WTF {
class RefCountedBase;
class ThreadSafeRefCountedBase;
-template<typename T>
+template <typename T>
struct IsRefCounted {
- static const bool value = IsSubclass<T, RefCountedBase>::value
- || IsSubclass<T, ThreadSafeRefCountedBase>::value;
+ static const bool value = IsSubclass<T, RefCountedBase>::value || IsSubclass<T, ThreadSafeRefCountedBase>::value;
};
template <typename T>
struct OwnedPtrDeleter {
- static void deletePtr(T* ptr)
- {
- static_assert(!IsRefCounted<T>::value, "use RefPtr for RefCounted objects");
- static_assert(sizeof(T) > 0, "type must be complete");
- delete ptr;
- }
+ static void deletePtr(T* ptr) {
+ static_assert(!IsRefCounted<T>::value, "use RefPtr for RefCounted objects");
+ static_assert(sizeof(T) > 0, "type must be complete");
+ delete ptr;
+ }
};
template <typename T>
struct OwnedPtrDeleter<T[]> {
- static void deletePtr(T* ptr)
- {
- static_assert(!IsRefCounted<T>::value, "use RefPtr for RefCounted objects");
- static_assert(sizeof(T) > 0, "type must be complete");
- delete[] ptr;
- }
+ static void deletePtr(T* ptr) {
+ static_assert(!IsRefCounted<T>::value, "use RefPtr for RefCounted objects");
+ static_assert(sizeof(T) > 0, "type must be complete");
+ delete[] ptr;
+ }
};
template <class T, int n>
struct OwnedPtrDeleter<T[n]> {
- static_assert(sizeof(T) < 0, "do not use array with size as type");
+ static_assert(sizeof(T) < 0, "do not use array with size as type");
};
-} // namespace WTF
+} // namespace WTF
-#endif // WTF_OwnPtrCommon_h
+#endif // WTF_OwnPtrCommon_h
« no previous file with comments | « third_party/WebKit/Source/wtf/OwnPtr.h ('k') | third_party/WebKit/Source/wtf/PageAllocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698