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

Issue 29331767: Issue #1234 + Clean up - CPluginTab (dead code, nullptr defect fix, etc.) (Closed)

Created:
Dec. 2, 2015, 6:35 p.m. by Eric
Modified:
Jan. 5, 2016, 2:13 p.m.
Reviewers:
sergei, Oleksandr
CC:
Felix Dahlke
Visibility:
Public.

Description

Issue #1234 + Clean up - CPluginTab (dead code, nullptr defect fix, etc.) Replace the last remaining occurrence of 'CString' in "PluginTabBase.cpp". Remove stub class 'CPluginTab' entirely. Rename base class 'CPluginTabBase' to 'CPluginTab'. Do not rename files "PluginTabBase.*" to "PluginTab.*". It would be best to do that in a separate commit because of tool limitationa. Remove 'CPluginTabBase::m_plugin'. It was initialized in the constructor but never used. Change the constructor to eliminate unnecessary argument. Change 'CPluginTabBase::m_filter' from an 'auto_ptr' to an ordinary object. It had been allocated in the constructor and never changed thereafter. This fixes a number of defects where the pointer was dereferenced without ever having been checked for nullptr, neither in the constructor nor at the point of use. Change all "protected" declarations in 'CPluginTabBase' to "private". There are no subclasses that reference any affected member. Changed signature of entry point 'FilterLoader()' to avoid gratuitous need for 'm_filter' to be a public member of 'CPluginTabBase'. There are some remaining public uses that are not part of this change set.

Patch Set 1 #

Patch Set 2 : add removal of stub class, optimization for res:// #

Patch Set 3 : remove CString #

Patch Set 4 : rebase only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -138 lines) Patch
M src/plugin/AdblockPlusDomTraverser.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/plugin/PluginClass.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/plugin/PluginDomTraverserBase.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/plugin/PluginTabBase.h View 1 1 chunk +47 lines, -74 lines 0 comments Download
M src/plugin/PluginTabBase.cpp View 1 2 19 chunks +59 lines, -61 lines 0 comments Download

Messages

Total messages: 7
Eric
Dec. 2, 2015, 6:42 p.m. (2015-12-02 18:42:29 UTC) #1
Eric
New patch set with more cleanup. Got rid of an old stub class. Made a ...
Dec. 3, 2015, 7:30 p.m. (2015-12-03 19:30:34 UTC) #2
Eric
Ping. Another review from almost two weeks ago with no action. I don't think there's ...
Dec. 15, 2015, 2:25 p.m. (2015-12-15 14:25:07 UTC) #3
sergei
Looks good, but could you rebase it.
Dec. 15, 2015, 3:20 p.m. (2015-12-15 15:20:38 UTC) #4
Eric
On 2015/12/15 15:20:38, sergei wrote: > Looks good, but could you rebase it. Done. Rebased ...
Dec. 15, 2015, 4:41 p.m. (2015-12-15 16:41:05 UTC) #5
Oleksandr
LGTM
Jan. 5, 2016, 1:22 a.m. (2016-01-05 01:22:28 UTC) #6
sergei
Jan. 5, 2016, 11:52 a.m. (2016-01-05 11:52:01 UTC) #7
LGTM

Powered by Google App Engine
This is Rietveld