DescriptionFix flag comparison in event_param_traits_unittest
The result of flags() was converted to a boolean and then masked against
an enum. VS 2015 complained that this makes no sense. The warning was:
event_param_traits_unittest.cc(90): warning C4806: '&': unsafe operation:
no value of type 'bool' promoted to type 'ui::MouseEventFlags' can equal
the given constant
Presumably the intent is to make sure the flags match. This can either
be done by removing the !! or by wrapping the '&' expression in
parentheses. This fix removes the !!.
Bug was introduced in crrev.com/1695783002, but only triggers on VS 2015
gn builds.
BUG=440500, 582658
Committed: https://crrev.com/48843ccd23afd0147f1484c57bd3fab73e482427
Cr-Commit-Position: refs/heads/master@{#380008}
Patch Set 1 #
Messages
Total messages: 12 (7 generated)
|