Chromium Code Reviews
DescriptionFix pointer checks to test-as-bool rather than null compares.
Various test fixtures have acquired assertions and expectations on pointers which try to compare explicitly with NULL or nullptr, rather than testing pointers as bools. These cases will break when WeakPtr is fixed to provide explicit operator bool().
Some bool-checks of other pointer containers (e.g. foo.get() == NULL) are also cleaned up.
BUG=605794
Committed: https://crrev.com/ca1070937cf760f039eae9392280b9e7c1601174
Cr-Commit-Position: refs/heads/master@{#396270}
Patch Set 1 #
Messages
Total messages: 13 (6 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||