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

Unified Diff: ui/base/cocoa/nscolor_additions.mm

Issue 2189483002: ui/base/cocoa: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/cocoa/nscolor_additions.mm
diff --git a/ui/base/cocoa/nscolor_additions.mm b/ui/base/cocoa/nscolor_additions.mm
index 3e1a94b5e5614d3427f7c508a23150a627659e18..84502d6d33be642a348efedb798c3f7315078154 100644
--- a/ui/base/cocoa/nscolor_additions.mm
+++ b/ui/base/cocoa/nscolor_additions.mm
@@ -20,8 +20,8 @@
const NSInteger numberOfComponents = [self numberOfComponents];
std::vector<CGFloat> components(numberOfComponents, 0.0);
[self getComponents:components.data()];
- auto color = CGColorCreate([[self colorSpace] CGColorSpace],
- components.data());
+ auto* color =
+ CGColorCreate([[self colorSpace] CGColorSpace], components.data());
base::mac::CFTypeRefToNSObjectAutorelease(color);
return color;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698