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

Unified Diff: base/linked_ptr.h

Issue 249363004: Revert of Style cleanup in preparation for auto-linting base/. (Closed)
Patch Set: Created 6 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 | « base/lazy_instance_unittest.cc ('k') | base/logging_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/linked_ptr.h
diff --git a/base/linked_ptr.h b/base/linked_ptr.h
index d9e81b33d2a9924b9303cbd7f0aa1f6a63614802..3f2bdb9416f1c669430eaaf33b0af6b36d1baea8 100644
--- a/base/linked_ptr.h
+++ b/base/linked_ptr.h
@@ -85,11 +85,7 @@
// 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) {
@@ -107,10 +103,7 @@
}
// 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_; }
« no previous file with comments | « base/lazy_instance_unittest.cc ('k') | base/logging_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698