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

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

Issue 840813009: Enable strict-virtual-specifiers for iOS builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments 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 | « net/proxy/proxy_config_service_ios.h ('k') | ui/gfx/image/image_ios_unittest.mm » ('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 46c1a44abd00f695ee3e053607243ac9cdda6197..170c51465df3f38fa92ab1299a6aeac7845fcf14 100644
--- a/ui/gfx/image/image.cc
+++ b/ui/gfx/image/image.cc
@@ -288,22 +288,16 @@ class ImageRepCocoaTouch : public ImageRep {
CHECK(image);
}
- virtual ~ImageRepCocoaTouch() {
+ ~ImageRepCocoaTouch() override {
base::mac::NSObjectRelease(image_);
image_ = nil;
}
- virtual int Width() const override {
- return Size().width();
- }
+ int Width() const override { return Size().width(); }
- virtual int Height() const override {
- return Size().height();
- }
+ int Height() const override { return Size().height(); }
- virtual gfx::Size Size() const override {
- return internal::UIImageSize(image_);
- }
+ gfx::Size Size() const override { return internal::UIImageSize(image_); }
UIImage* image() const { return image_; }
« no previous file with comments | « net/proxy/proxy_config_service_ios.h ('k') | ui/gfx/image/image_ios_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698