DescriptionTEST CODE - Replace frame/iframe cache sets with boolean
Remove 'CPluginDomTraverserBase::m_documentName', which was never explicitly
initialized. It was effectively a constant whose value was the empty string.
Replace set 'm_cacheDocumentHasIframes' with boolean 'cacheHasIframes' and
likewise for frames. The only value ever inserted into these sets was
'm_documentName', that is, the empty string, so these sets only existed in one
of two states: (1) empty (replaced by the value 'false'), and (2) a set
containing exactly one element, the empty string (replaced by the value
'true'). Initialize the booleans to true upon construction. Replace the
'insert()' operation with an assignment of 'true'. Replace the 'clear()'
operation with an assignment of 'false'. Replace the 'find()' operation with
the value of the replacement boolean value.
--------
Depends upon the following review:
https://codereview.adblockplus.org/29332057/
Patch Set 1 #
MessagesTotal messages: 3
|