From: Vadim Zeitlin Date: Wed, 23 May 2012 21:16:38 +0000 (+0000) Subject: No real changes, just slightly simplify HasAppKit_10_6() function. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ff7dbb27d495cc5e7369016aaa1d7449968368aa?ds=sidebyside No real changes, just slightly simplify HasAppKit_10_6() function. Remove redundant check for version == -1. See #13831. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/cocoa/filedlg.mm b/src/osx/cocoa/filedlg.mm index 0ab62f5bfa..d08d3a3c3e 100644 --- a/src/osx/cocoa/filedlg.mm +++ b/src/osx/cocoa/filedlg.mm @@ -70,10 +70,8 @@ bool HasAppKit_10_6() // case above. version = NSVersionOfRunTimeLibrary("AppKit"); } - if (version == -1) - { - return false; - } + + // Notice that this still works correctly even if version is -1. return version >= 0x40e2400 /* version of 10.6 AppKit */; }