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

Issue 29332057: Issue #1234 - Replace CString in the traverser (Closed)

Created:
Dec. 7, 2015, 3:45 p.m. by Eric
Modified:
Dec. 14, 2015, 4:14 p.m.
Reviewers:
sergei, Oleksandr
CC:
Felix Dahlke
Visibility:
Public.

Description

Issue #1234 - Replace CString in the traverser Change all the 'CString' arguments in traverser functions to 'std::wstring'. Add 'const' declaration to all the 'indent' arguments. Extract 'CString::MakeLower' into a utility function 'ToLowerString()'. Defer rewriting this function to avoid 'MakeLower' pending resolution of locale questions. Rewrite loop for <object> elements to eliminate 'CString' local variables.

Patch Set 1 : #

Patch Set 2 : rebase #

Total comments: 9

Patch Set 3 : documentUrl arguments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -60 lines) Patch
M src/plugin/AdblockPlusDomTraverser.h View 1 chunk +3 lines, -3 lines 0 comments Download
M src/plugin/AdblockPlusDomTraverser.cpp View 8 chunks +35 lines, -35 lines 0 comments Download
M src/plugin/PluginDomTraverserBase.h View 1 2 9 chunks +19 lines, -22 lines 0 comments Download
M src/plugin/PluginUtil.h View 1 chunk +6 lines, -0 lines 0 comments Download
M src/plugin/PluginUtil.cpp View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 12
Eric
This is the last of the major changes required for #1234. There will be one ...
Dec. 7, 2015, 4:12 p.m. (2015-12-07 16:12:22 UTC) #1
sergei
LGTM
Dec. 8, 2015, 11:34 a.m. (2015-12-08 11:34:21 UTC) #2
Eric
Added new review https://codereview.adblockplus.org/29332484/ to avoid a dependency on a larger review under discussion. Added ...
Dec. 9, 2015, 1:20 p.m. (2015-12-09 13:20:03 UTC) #3
Eric
Recent commit of ToWstring(BSTR) change removes dependency on other reviews. Changed description accordingly. New patch ...
Dec. 14, 2015, 12:04 p.m. (2015-12-14 12:04:45 UTC) #4
sergei
LGTM https://codereview.adblockplus.org/29332057/diff/29332595/src/plugin/AdblockPlusDomTraverser.cpp File src/plugin/AdblockPlusDomTraverser.cpp (right): https://codereview.adblockplus.org/29332057/diff/29332595/src/plugin/AdblockPlusDomTraverser.cpp#newcode93 src/plugin/AdblockPlusDomTraverser.cpp:93: posBegin = objectInnerHtml.find(L"VALUE=\"", posBegin); It's not related to ...
Dec. 14, 2015, 12:17 p.m. (2015-12-14 12:17:55 UTC) #5
Eric
https://codereview.adblockplus.org/29332057/diff/29332595/src/plugin/AdblockPlusDomTraverser.cpp File src/plugin/AdblockPlusDomTraverser.cpp (right): https://codereview.adblockplus.org/29332057/diff/29332595/src/plugin/AdblockPlusDomTraverser.cpp#newcode93 src/plugin/AdblockPlusDomTraverser.cpp:93: posBegin = objectInnerHtml.find(L"VALUE=\"", posBegin); On 2015/12/14 12:17:55, sergei wrote: ...
Dec. 14, 2015, 12:40 p.m. (2015-12-14 12:40:24 UTC) #6
Oleksandr
LGTM https://codereview.adblockplus.org/29332057/diff/29332595/src/plugin/AdblockPlusDomTraverser.cpp File src/plugin/AdblockPlusDomTraverser.cpp (right): https://codereview.adblockplus.org/29332057/diff/29332595/src/plugin/AdblockPlusDomTraverser.cpp#newcode93 src/plugin/AdblockPlusDomTraverser.cpp:93: posBegin = objectInnerHtml.find(L"VALUE=\"", posBegin); On 2015/12/14 12:17:55, sergei ...
Dec. 14, 2015, 12:45 p.m. (2015-12-14 12:45:34 UTC) #7
Oleksandr
Sorry, Not LGTM yet. Missed one important change. https://codereview.adblockplus.org/29332057/diff/29332595/src/plugin/PluginDomTraverserBase.h File src/plugin/PluginDomTraverserBase.h (left): https://codereview.adblockplus.org/29332057/diff/29332595/src/plugin/PluginDomTraverserBase.h#oldcode113 src/plugin/PluginDomTraverserBase.h:113: void ...
Dec. 14, 2015, 12:49 p.m. (2015-12-14 12:49:07 UTC) #8
sergei
https://codereview.adblockplus.org/29332057/diff/29332595/src/plugin/AdblockPlusDomTraverser.cpp File src/plugin/AdblockPlusDomTraverser.cpp (right): https://codereview.adblockplus.org/29332057/diff/29332595/src/plugin/AdblockPlusDomTraverser.cpp#newcode93 src/plugin/AdblockPlusDomTraverser.cpp:93: posBegin = objectInnerHtml.find(L"VALUE=\"", posBegin); On 2015/12/14 12:40:23, Eric wrote: ...
Dec. 14, 2015, 1:28 p.m. (2015-12-14 13:28:03 UTC) #9
Eric
New patch set addresses Oleksandr's concern. - Added (currently unused) documentUrl argument to TraverseSubdocument(). - ...
Dec. 14, 2015, 1:28 p.m. (2015-12-14 13:28:53 UTC) #10
Oleksandr
> https://codereview.adblockplus.org/29332057/diff/29332595/src/plugin/AdblockPlusDomTraverser.cpp#newcode93 > src/plugin/AdblockPlusDomTraverser.cpp:93: posBegin = > objectInnerHtml.find(L"VALUE=\"", posBegin); > On 2015/12/14 12:45:34, Oleksandr wrote: ...
Dec. 14, 2015, 2:01 p.m. (2015-12-14 14:01:31 UTC) #11
Oleksandr
Dec. 14, 2015, 2:03 p.m. (2015-12-14 14:03:50 UTC) #12
LGTM. Thanks.

Powered by Google App Engine
This is Rietveld