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

Unified Diff: src/plugin/AdblockPlusDomTraverser.cpp

Issue 5698769010032640: Issue #1466 - fix usage of BSTR (Closed)
Patch Set: Created Oct. 8, 2014, 2:48 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/plugin/ATL_Deprecate.h ('k') | src/plugin/PluginDomTraverserBase.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/AdblockPlusDomTraverser.cpp
===================================================================
--- a/src/plugin/AdblockPlusDomTraverser.cpp
+++ b/src/plugin/AdblockPlusDomTraverser.cpp
@@ -49,7 +49,7 @@
{
CComVariant vAttr;
- if (SUCCEEDED(pEl->getAttribute(L"src", 0, &vAttr)) && vAttr.vt == VT_BSTR && ::SysStringLen(vAttr.bstrVal) > 0)
+ if (SUCCEEDED(pEl->getAttribute(ATL::CComBSTR(L"src"), 0, &vAttr)) && vAttr.vt == VT_BSTR && ::SysStringLen(vAttr.bstrVal) > 0)
Eric 2014/10/09 13:54:01 As I said in the previous review, I object to usin
sergei 2014/10/16 08:53:25 - I would say that speaking about maintainability
Oleksandr 2014/10/17 07:38:02 - I agree that using ATL's class is better then ou
Eric 2014/10/20 04:06:24 The main way that the code becomes cleaner by usin
Eric 2014/10/20 04:06:24 What we decided was that there was little rush to
Eric 2014/10/20 04:06:24 From what I can tell, I don't think you spent any
Eric 2014/10/20 04:06:24 It is possible to define a class for the kind of e
Oleksandr 2014/10/21 23:53:19 I really don't think we should be having prolonged
{
CString src = vAttr.bstrVal;
CPluginClient::UnescapeUrl(src);
« no previous file with comments | « src/plugin/ATL_Deprecate.h ('k') | src/plugin/PluginDomTraverserBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld