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

Unified Diff: ui/gfx/image/image.cc

Issue 1456703004: ScopedPtrMap -> std::map from /ui/gfx/image (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use insert() Created 5 years, 1 month 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 | « ui/gfx/image/image.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image.cc
diff --git a/ui/gfx/image/image.cc b/ui/gfx/image/image.cc
index d9e51e87b3cebc044563b694c7847e9d3e2f6c73..2e0297ac222d275aadf0d00f32bdc50455ec69ac 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().insert(std::make_pair(type, std::move(rep)));
}
} // namespace gfx
« no previous file with comments | « ui/gfx/image/image.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698