From fb1a46b933698a549b1ae59a6eb87ec6a3f1d88f Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 25 Feb 2019 23:48:28 -0800 Subject: [PATCH] Remove test of always-true condition --- src/msw/glcanvas.cpp | 2 +- src/osx/window_osx.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msw/glcanvas.cpp b/src/msw/glcanvas.cpp index b5fd506d77..2588f4e9c1 100644 --- a/src/msw/glcanvas.cpp +++ b/src/msw/glcanvas.cpp @@ -376,7 +376,7 @@ wxGLAttributes& wxGLAttributes::Level(int val) AddAttribute(WGL_NUMBER_OVERLAYS_ARB); AddAttribute(val); } - else if ( val < 0 ) + else { AddAttribute(WGL_NUMBER_UNDERLAYS_ARB); AddAttribute(-val); diff --git a/src/osx/window_osx.cpp b/src/osx/window_osx.cpp index f8643c800b..fa6349c560 100644 --- a/src/osx/window_osx.cpp +++ b/src/osx/window_osx.cpp @@ -2626,7 +2626,7 @@ bool wxWindowMac::OSXHandleKeyEvent( wxKeyEvent& event ) // moved the ordinary key event sending AFTER the accel evaluation #if wxUSE_ACCEL - if ( !handled && event.GetEventType() == wxEVT_KEY_DOWN) + if (event.GetEventType() == wxEVT_KEY_DOWN) { wxWindow *ancestor = this; while (ancestor)