Bug 1718564 - Fix -Wlogical-op warning in GamepadTouchState.h. r=cmartin

gcc reports the following -Wlogical-op warning because the `touchId == aTouch.touchId` check is duplicated:

GamepadTouchState.h:28:38: warning: logical 'and' of equal expressions [-Wlogical-op]

Differential Revision: https://phabricator.services.mozilla.com/D118924
This commit is contained in:
Chris Peterson 2021-07-09 23:53:47 +00:00
Родитель 8ee5ae1678
Коммит 76babf22e6
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -25,8 +25,8 @@ struct GamepadTouchState {
isSurfaceDimensionsValid(false) {}
bool operator==(const GamepadTouchState& aTouch) const {
return touchId == aTouch.touchId && touchId == aTouch.touchId &&
surfaceId == aTouch.surfaceId && position[0] == aTouch.position[0] &&
return touchId == aTouch.touchId && surfaceId == aTouch.surfaceId &&
position[0] == aTouch.position[0] &&
position[1] == aTouch.position[1] &&
surfaceDimensions[0] == aTouch.surfaceDimensions[0] &&
surfaceDimensions[1] == aTouch.surfaceDimensions[1] &&