mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
mark the error case in qt_unix_query() as unlikely
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
d1c27ced1e
commit
1495e511da
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ static bool qt_unix_query(const QString &library, QLibraryPrivate *lib)
|
|||
{
|
||||
const QByteArray libpath = QFile::encodeName(library);
|
||||
const int libfd = qt_safe_open(libpath.constData(), QT_OPEN_RDONLY);
|
||||
if (libfd == -1) {
|
||||
if (Q_UNLIKELY(libfd == -1)) {
|
||||
const int savederrno = errno;
|
||||
lib->errorString = qt_error_string(savederrno);
|
||||
if (qt_debug_component()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue