diff options
Diffstat (limited to 'components/enhanced_bookmarks/image_record.cc')
-rw-r--r-- | components/enhanced_bookmarks/image_record.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/components/enhanced_bookmarks/image_record.cc b/components/enhanced_bookmarks/image_record.cc index 2e380f0..96cc443 100644 --- a/components/enhanced_bookmarks/image_record.cc +++ b/components/enhanced_bookmarks/image_record.cc @@ -4,19 +4,17 @@ #include "components/enhanced_bookmarks/image_record.h" +#include <utility> + namespace enhanced_bookmarks { ImageRecord::ImageRecord(scoped_ptr<gfx::Image> image, const GURL& url, SkColor dominant_color) - : image(image.Pass()), - url(url), - dominant_color(dominant_color) { -} + : image(std::move(image)), url(url), dominant_color(dominant_color) {} ImageRecord::ImageRecord(scoped_ptr<gfx::Image> image, const GURL& url) - : ImageRecord(image.Pass(), url, SK_ColorBLACK) { -} + : ImageRecord(std::move(image), url, SK_ColorBLACK) {} ImageRecord::ImageRecord() : ImageRecord(scoped_ptr<gfx::Image>(new gfx::Image()), GURL()) { |