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

Unified Diff: ui/views/border.cc

Issue 809903005: ui/views: Cleanup usage of scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no need of Pass() Created 5 years, 11 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 | « no previous file | ui/views/controls/button/label_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/border.cc
diff --git a/ui/views/border.cc b/ui/views/border.cc
index b36936e914d8b401b9cbcf22bdde2e1ba70a88ca..6e28cafb884debe05c05f5a638e179f3062f637f 100644
--- a/ui/views/border.cc
+++ b/ui/views/border.cc
@@ -128,12 +128,12 @@ Border::~Border() {
// static
scoped_ptr<Border> Border::NullBorder() {
- return scoped_ptr<Border>();
+ return nullptr;
}
// static
scoped_ptr<Border> Border::CreateSolidBorder(int thickness, SkColor color) {
- return scoped_ptr<Border>(new SolidBorder(thickness, color));
+ return make_scoped_ptr(new SolidBorder(thickness, color));
}
// static
@@ -141,7 +141,7 @@ scoped_ptr<Border> Border::CreateEmptyBorder(int top,
int left,
int bottom,
int right) {
- return scoped_ptr<Border>(new EmptyBorder(top, left, bottom, right));
+ return make_scoped_ptr(new EmptyBorder(top, left, bottom, right));
}
// static
@@ -150,14 +150,13 @@ scoped_ptr<Border> Border::CreateSolidSidedBorder(int top,
int bottom,
int right,
SkColor color) {
- return scoped_ptr<Border>(
- new SidedSolidBorder(top, left, bottom, right, color));
+ return make_scoped_ptr(new SidedSolidBorder(top, left, bottom, right, color));
}
// static
scoped_ptr<Border> Border::CreateBorderPainter(Painter* painter,
const gfx::Insets& insets) {
- return scoped_ptr<Border>(new BorderPainter(painter, insets));
+ return make_scoped_ptr(new BorderPainter(painter, insets));
}
} // namespace views
« no previous file with comments | « no previous file | ui/views/controls/button/label_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698