Remove unnecessary assignments in WM_GESTURE handler code

The "processed" flag is false by default, no need to explicitly reset
it, this was just confusing.
This commit is contained in:
Vadim Zeitlin
2017-11-21 16:07:57 +01:00
parent 59f428d25e
commit 7ffb897810

View File

@@ -3204,10 +3204,7 @@ wxWindowMSW::MSWHandleMessage(WXLRESULT *result,
case WM_GESTURE:
{
if ( !GestureFuncs::IsOk() )
{
processed = false;
break;
}
// gestureInfo will contain the information about the gesture
GESTUREINFO gestureInfo = {0};
@@ -3217,7 +3214,6 @@ wxWindowMSW::MSWHandleMessage(WXLRESULT *result,
if ( !GestureFuncs::GetGestureInfo()((HGESTUREINFO)lParam, &gestureInfo) )
{
wxLogLastError("GetGestureInfo");
processed = false;
break;
}