зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
8ee5ae1678
Коммит
76babf22e6
|
@ -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] &&
|
||||
|
|
Загрузка…
Ссылка в новой задаче