Bug 56688 - Fix clang static analyzer warning in WebCoreViewFactory.m
Summary: Fix clang static analyzer warning in WebCoreViewFactory.m
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: David Kilzer (:ddkilzer)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-18 15:09 PDT by David Kilzer (:ddkilzer)
Modified: 2011-03-18 20:59 PDT (History)
1 user (show)

See Also:


Attachments
Patch (1.38 KB, patch)
2011-03-18 15:09 PDT, David Kilzer (:ddkilzer)
andersca: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Kilzer (:ddkilzer) 2011-03-18 15:09:25 PDT
Created attachment 86220 [details]
Patch

Reviewed by NOBODY (OOPS!).

Fixes the following static analyzer warning:

Source/WebCore/page/mac/WebCoreViewFactory.m:45:5: warning: Returning 'self' while it is not set to the result of '[(super or self) init...]'
return self;
^

* page/mac/WebCoreViewFactory.m:
(-[WebCoreViewFactory init]): Assign the result of [super init]
to self.
---
 2 files changed, 17 insertions(+), 1 deletions(-)
Comment 1 David Kilzer (:ddkilzer) 2011-03-18 20:59:23 PDT
Committed r81546: <http://trac.webkit.org/changeset/81546>