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

Unified Diff: chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm

Issue 10031018: Add a few missing "self = [super init..." notices by the clang static analyzer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
Index: chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm
diff --git a/chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm b/chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm
index 6b1ebcbad29067a4585f3178116820fb25ff0c19..005f7a0ca515d4375808801a777ce67c636cf704 100644
--- a/chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm
+++ b/chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm
@@ -81,10 +81,11 @@ static NSEvent* MakeMouseEvent(NSEventType type,
@implementation RepaintAnimation
- (id)initWithView:(NSView*)targetView duration:(double) duration {
- if (![super initWithDuration:duration animationCurve:NSAnimationEaseInOut])
- return nil;
- [self setAnimationBlockingMode:NSAnimationNonblocking];
- targetView_ = targetView;
+ if ((self = [super initWithDuration:duration
+ animationCurve:NSAnimationEaseInOut])) {
+ [self setAnimationBlockingMode:NSAnimationNonblocking];
+ targetView_ = targetView;
+ }
return self;
}
« no previous file with comments | « chrome/browser/ui/cocoa/external_protocol_dialog.mm ('k') | chrome/browser/ui/panels/panel_window_controller_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698