Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 6650591174459392: Issues #276, #1163 - introduce class IncomingParam (Closed)

Created:
July 25, 2014, 11:27 p.m. by Eric
Modified:
Dec. 30, 2014, 1:47 p.m.
Reviewers:
Visibility:
Public.

Description

Issues #276, #1163 - introduce class IncomingParam New class IncomingParam. Eliminate all uses of ATL::CComBSTR when it appears as the receiver of an incoming parameter from a COM entry point. Constructor has its final signature. Convertible predicate and non-throwing conversion function are transient during work on #1163.

Patch Set 1 #

Total comments: 2

Patch Set 2 : rewrite incomparable with patch set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -21 lines) Patch
M src/plugin/COM_Value.h View 1 1 chunk +42 lines, -0 lines 0 comments Download
M src/plugin/COM_Value.cpp View 1 1 chunk +15 lines, -0 lines 0 comments Download
M src/plugin/PluginClass.cpp View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/plugin/PluginUserSettings.cpp View 1 5 chunks +41 lines, -21 lines 0 comments Download

Messages

Total messages: 4
Eric
Follows http://codereview.adblockplus.org/5070706781978624/ because of tool limitations. This is the other half of eliminating CComBSTR
July 25, 2014, 11:30 p.m. (2014-07-25 23:30:12 UTC) #1
sergei
http://codereview.adblockplus.org/6650591174459392/diff/5629499534213120/src/plugin/COM_Value.h File src/plugin/COM_Value.h (right): http://codereview.adblockplus.org/6650591174459392/diff/5629499534213120/src/plugin/COM_Value.h#newcode137 src/plugin/COM_Value.h:137: Incoming_Param( BSTR b ); Instead of commenting all bad ...
July 28, 2014, 9:24 a.m. (2014-07-28 09:24:31 UTC) #2
Eric
Note changed issue description. http://codereview.adblockplus.org/6650591174459392/diff/5629499534213120/src/plugin/COM_Value.h File src/plugin/COM_Value.h (right): http://codereview.adblockplus.org/6650591174459392/diff/5629499534213120/src/plugin/COM_Value.h#newcode137 src/plugin/COM_Value.h:137: Incoming_Param( BSTR b ); On ...
July 29, 2014, 7:53 p.m. (2014-07-29 19:53:08 UTC) #3
Oleksandr
Oct. 7, 2014, 10:02 p.m. (2014-10-07 22:02:35 UTC) #4
Bump. Shall we close this?
On 2014/07/29 19:53:08, Eric wrote:
> Note changed issue description.
> 
>
http://codereview.adblockplus.org/6650591174459392/diff/5629499534213120/src/...
> File src/plugin/COM_Value.h (right):
> 
>
http://codereview.adblockplus.org/6650591174459392/diff/5629499534213120/src/...
> src/plugin/COM_Value.h:137: Incoming_Param( BSTR b );
> On 2014/07/28 09:24:31, sergei wrote:
> > Instead of commenting all bad things here, I will say only the desired
result.
> > Replace this class by the method
> > `std::wstring our-namespace::to_wstring(const BSTR value)`.
> 
> Oh, that's just awful. If there's one thing I've learned about dealing with
COM
> interface types, it's that conversion functions that ignore their lifecycle
> issues are a Very Bad Idea. Using a generic name for a conversion function is
> asking for trouble.
> 
> Whatever. This was supposed to be a temporary class anyway, as the comment
very
> clearly indicated. I've just rewritten the whole thing as I was going to get
to
> later.

Powered by Google App Engine
This is Rietveld