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

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

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 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 | « ui/base/resource/data_pack.h ('k') | ui/gfx/image/image_skia_unittest.cc » ('j') | 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 b09b66f571d1a050cd5fcfa3b66a3600bdca789c..18bf81d5ce32f8d65f77943ac291dc27a4470444 100644
--- a/ui/gfx/image/image.cc
+++ b/ui/gfx/image/image.cc
@@ -246,7 +246,7 @@ class ImageRepPNG : public ImageRep {
ImageRepPNG() : ImageRep(Image::kImageRepPNG) {
}
- ImageRepPNG(const std::vector<ImagePNGRep>& image_png_reps)
+ explicit ImageRepPNG(const std::vector<ImagePNGRep>& image_png_reps)
: ImageRep(Image::kImageRepPNG),
image_png_reps_(image_png_reps) {
}
@@ -377,7 +377,7 @@ class ImageRepCocoa : public ImageRep {
// ImageReps. This way, the Image can be cheaply copied.
class ImageStorage : public base::RefCounted<ImageStorage> {
public:
- ImageStorage(gfx::Image::RepresentationType default_type)
+ explicit ImageStorage(gfx::Image::RepresentationType default_type)
: default_representation_type_(default_type),
representations_deleter_(&representations_) {
}
« no previous file with comments | « ui/base/resource/data_pack.h ('k') | ui/gfx/image/image_skia_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698