Bug 113913 - [SOUP] Remove unnecessary explicit keyword in SocketStreamError.h
Summary: [SOUP] Remove unnecessary explicit keyword in SocketStreamError.h
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-03 18:22 PDT by Seokju Kwon
Modified: 2013-04-05 11:40 PDT (History)
4 users (show)

See Also:


Attachments
Patch (1.48 KB, patch)
2013-04-03 18:24 PDT, Seokju Kwon
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Seokju Kwon 2013-04-03 18:22:07 PDT
Patch to follow.
Comment 1 Seokju Kwon 2013-04-03 18:24:57 PDT
Created attachment 196428 [details]
Patch
Comment 2 Xan Lopez 2013-04-04 03:57:06 PDT
Comment on attachment 196428 [details]
Patch

Why is the keyword not needed in this case? Do we want to use it in implicit conversions?
Comment 3 Seokju Kwon 2013-04-04 04:10:55 PDT
(In reply to comment #2)
> (From update of attachment 196428 [details])
> Why is the keyword not needed in this case? Do we want to use it in implicit conversions?

It seems that c++11 supports for explicit keyword on multi-arg constructor.
But normally, we use the C++ keyword explicit for constructors with one argument.
So, I have just removed it like other ports.
Comment 4 Xan Lopez 2013-04-05 01:46:15 PDT
(In reply to comment #3)
> (In reply to comment #2)
> > (From update of attachment 196428 [details] [details])
> > Why is the keyword not needed in this case? Do we want to use it in implicit conversions?
> 
> It seems that c++11 supports for explicit keyword on multi-arg constructor.
> But normally, we use the C++ keyword explicit for constructors with one argument.
> So, I have just removed it like other ports.

It seems the ctor had originally just one argument, but then another was added in r102339 and the explicit keyword was not removed. If you say C++ before 11 does not support explicit multi-argument ctors then I guess it makse sense to remove it, but on the other hand WebKit is slowly moving to c++11 and this seems to be harmless. So no strong opinion here.

Martin reviewed the original commit, so maybe he has an opinion.
Comment 5 Chris Dumez 2013-04-05 02:10:52 PDT
Comment on attachment 196428 [details]
Patch

LGTM.
Comment 6 Seokju Kwon 2013-04-05 06:47:51 PDT
Thanks! xan and cdumez.
Martin Robinson : What do you think about it?
Comment 7 Martin Robinson 2013-04-05 11:18:41 PDT
Comment on attachment 196428 [details]
Patch

I guess we can remove this.
Comment 8 WebKit Commit Bot 2013-04-05 11:40:47 PDT
Comment on attachment 196428 [details]
Patch

Clearing flags on attachment: 196428

Committed r147769: <http://trac.webkit.org/changeset/147769>
Comment 9 WebKit Commit Bot 2013-04-05 11:40:49 PDT
All reviewed patches have been landed.  Closing bug.