WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 40503
Bug 40622
Fix return values of functions returning bool instead of pointer
https://bugs.webkit.org/show_bug.cgi?id=40622
Summary
Fix return values of functions returning bool instead of pointer
Lucas De Marchi
Reported
2010-06-15 08:18:54 PDT
Fix return values of functions returning bool instead of pointer
Attachments
Patch
(1.53 KB, patch)
2010-06-15 08:20 PDT
,
Lucas De Marchi
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Lucas De Marchi
Comment 1
2010-06-15 08:20:16 PDT
Created
attachment 58779
[details]
Patch
Lucas De Marchi
Comment 2
2010-06-15 08:26:11 PDT
When compiling WebKit the following warnings were appearing: WebCore/inspector/InspectorValues.cpp: In member function ‘WTF::PassRefPtr<WebCore::InspectorArray> WebCore::InspectorObject::getArray(const WebCore::String&) const’: WebCore/inspector/InspectorValues.cpp:610:16: warning: converting ‘false’ to pointer type for argument 1 of ‘WTF::PassRefPtr<T>::PassRefPtr(T*) [with T = WebCore::InspectorArray]’ The patch sent fixes this issue.
David Levin
Comment 3
2010-06-15 13:47:40 PDT
Comment on
attachment 58779
[details]
Patch
> diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog > index caf28db0f3ab1d011b49ab785eea0623352db82f..9d744124996a7431e9b4f2ff81ed67a52061ce58 100644 > --- a/WebCore/ChangeLog > +++ b/WebCore/ChangeLog > @@ -1,3 +1,17 @@ > +2010-06-15 Lucas De Marchi <
lucas.demarchi@profusion.mobi
> > + > + Reviewed by NOBODY (OOPS!). > + > + Return 0 instead of false when functions return a pointer instead of > + a boolean value. > +
https://bugs.webkit.org/show_bug.cgi?id=40622
> + > + No new tests since this just removes compiler warnings.
Typically you'd say "No change in functionality so no new tests."
WebKit Commit Bot
Comment 4
2010-06-17 22:01:14 PDT
Comment on
attachment 58779
[details]
Patch Rejecting patch 58779 from commit-queue. Failed to run "[u'/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/svn-apply', u'--reviewer', u'David Levin', u'--force']" exit_code: 1 Parsed 2 diffs from patch file(s). patching file WebCore/ChangeLog Hunk #1 succeeded at 1 with fuzz 3. patching file WebCore/inspector/InspectorValues.cpp Hunk #1 FAILED at 599. Hunk #2 FAILED at 607. 2 out of 2 hunks FAILED -- saving rejects to file WebCore/inspector/InspectorValues.cpp.rej Full output:
http://webkit-commit-queue.appspot.com/results/3341328
Lucas De Marchi
Comment 5
2010-06-18 04:26:11 PDT
(In reply to
comment #4
)
> (From update of
attachment 58779
[details]
) > Rejecting patch 58779 from commit-queue. > > Failed to run "[u'/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/svn-apply', u'--reviewer', u'David Levin', u'--force']" exit_code: 1
A similar patch was first on commit queue and was applied today. *** This bug has been marked as a duplicate of
bug 40503
***
Lucas De Marchi
Comment 6
2011-06-09 20:48:06 PDT
Comment on
attachment 58779
[details]
Patch clearing flags.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug