Silence uninitialized variable warning in wxMac PanGestureEvent
Even though the value of this variable is not actually used in this case, we still must initialize it to something before comparing with NSGestureRecognizerState{Began,Ended} below. Closes https://github.com/wxWidgets/wxWidgets/pull/645
This commit is contained in:
committed by
Vadim Zeitlin
parent
3de89b2710
commit
f36973875e
@@ -1646,6 +1646,7 @@ void wxWidgetCocoaImpl::PanGestureEvent(NSPanGestureRecognizer* panGestureRecogn
|
||||
gestureState = NSGestureRecognizerStateBegan;
|
||||
break;
|
||||
case NSGestureRecognizerStateChanged:
|
||||
gestureState = NSGestureRecognizerStateChanged;
|
||||
break;
|
||||
case NSGestureRecognizerStateEnded:
|
||||
case NSGestureRecognizerStateCancelled:
|
||||
|
Reference in New Issue
Block a user