Index: base/linked_ptr.h |
diff --git a/base/linked_ptr.h b/base/linked_ptr.h |
index 3f2bdb9416f1c669430eaaf33b0af6b36d1baea8..d9e81b33d2a9924b9303cbd7f0aa1f6a63614802 100644 |
--- a/base/linked_ptr.h |
+++ b/base/linked_ptr.h |
@@ -85,7 +85,11 @@ class linked_ptr { |
// Copy an existing linked_ptr<>, adding ourselves to the list of references. |
template <typename U> linked_ptr(linked_ptr<U> const& ptr) { copy(&ptr); } |
- linked_ptr(linked_ptr const& ptr) { DCHECK_NE(&ptr, this); copy(&ptr); } |
+ |
+ linked_ptr(linked_ptr const& ptr) { |
+ DCHECK_NE(&ptr, this); |
+ copy(&ptr); |
+ } |
// Assignment releases the old value and acquires the new. |
template <typename U> linked_ptr& operator=(linked_ptr<U> const& ptr) { |
@@ -103,7 +107,10 @@ class linked_ptr { |
} |
// Smart pointer members. |
- void reset(T* ptr = NULL) { depart(); capture(ptr); } |
+ void reset(T* ptr = NULL) { |
+ depart(); |
+ capture(ptr); |
+ } |
T* get() const { return value_; } |
T* operator->() const { return value_; } |
T& operator*() const { return *value_; } |