diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-06-29 22:14:53 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2017-07-18 15:51:25 +0000 |
commit | bf410ed529789f89a63af6a35bb06837b31b95a2 (patch) | |
tree | 27aaa3d4a13d556b2af9a998de3c5d5e5560913f /src/corelib/plugin/qlibrary.cpp | |
parent | f3205a49498d3084f46bc2c2abcd085c8436553b (diff) | |
download | qtbase-bf410ed529789f89a63af6a35bb06837b31b95a2.tar.gz |
Convert improper uses of qt_error_string() to QSystemError::stdString()
On Windows, qt_error_string() returns the string corresponding to the
Win32 API, not an errno. Replace those uses for a function that works
for errno values.
Change-Id: I1eba2b016de74620bfc8fffd14ccce6162bafdca
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/plugin/qlibrary.cpp')
-rw-r--r-- | src/corelib/plugin/qlibrary.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/plugin/qlibrary.cpp b/src/corelib/plugin/qlibrary.cpp index 3d04d0802d..ebad7f1751 100644 --- a/src/corelib/plugin/qlibrary.cpp +++ b/src/corelib/plugin/qlibrary.cpp @@ -48,6 +48,7 @@ #include <qmutex.h> #include <qmap.h> #include <private/qcoreapplication_p.h> +#include <private/qsystemerror_p.h> #ifdef Q_OS_MAC # include <private/qcore_mac_p.h> #endif @@ -237,7 +238,7 @@ static bool findPatternUnloaded(const QString &library, QLibraryPrivate *lib) lib->errorString = file.errorString(); if (qt_debug_component()) { qWarning("%s: %s", (const char*) QFile::encodeName(library), - qPrintable(qt_error_string(errno))); + qPrintable(QSystemError::stdString())); } return false; } |