diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2021-08-12 14:51:19 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2021-08-16 19:26:29 +0200 |
commit | 991c471aa50e5b9944a5bcf4da3316263002d96d (patch) | |
tree | d411ffd0f8905986e90d762fcf348ea8659d2a53 /src/corelib/io/qdir.cpp | |
parent | cfa631e0fb5d78aac80cb580eb092fafa1cd9a8f (diff) |
QLibrary: succeed early for .dylib on Darwin
Drag the cheap check for 'fileName.endsWith(".dylib")' to before the
expensive operations (QFileInfo creation, extraction and splitting of
completeSuffix(), building of suffix candidate list, ...), at the cost
of a duplicated Q_OS_DARWIN check.
Change-Id: I8ed764f18f0beb8ad24c30ab806ecc5452159601
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qdir.cpp')
0 files changed, 0 insertions, 0 deletions