Index: ui/gfx/image/image.cc |
diff --git a/ui/gfx/image/image.cc b/ui/gfx/image/image.cc |
index d9e51e87b3cebc044563b694c7847e9d3e2f6c73..23c82f694d326bb1e1be36094838b5f45bc2a1a4 100644 |
--- a/ui/gfx/image/image.cc |
+++ b/ui/gfx/image/image.cc |
@@ -743,13 +743,13 @@ internal::ImageRep* Image::GetRepresentation( |
CHECK(!must_exist); |
return NULL; |
} |
- return it->second; |
+ return it->second.get(); |
} |
void Image::AddRepresentation(scoped_ptr<internal::ImageRep> rep) const { |
CHECK(storage_.get()); |
RepresentationType type = rep->type(); |
- storage_->representations().insert(type, rep.Pass()); |
+ storage_->representations()[type] = std::move(rep); |
danakj
2015/11/18 23:03:56
why'd you change it to [] instead to insert? it's
limasdf
2015/11/18 23:12:07
Hm..No big reason, going back to 'insert()'.
|
} |
} // namespace gfx |