summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-03-25 14:03:09 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-03-26 09:40:29 +0100
commitba3415e0bd602ef1aacd856061311d7f93f5a7de (patch)
tree07abe85b856e52e098f8e1a19a9ce84f249e8df7 /tests
parent21692d3b181be15c7e8859302f2274c9dd7150e3 (diff)
Don't use deprecated QLibrary::location
Use QLibrary::path instead to silence compiler warnings. Change-Id: Ib39ab1528f6060ae37dddfaf6b69e420c37bcd35 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/windeployqt/tst_windeployqt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/windeployqt/tst_windeployqt.cpp b/tests/auto/windeployqt/tst_windeployqt.cpp
index 04aece287..38403c90f 100644
--- a/tests/auto/windeployqt/tst_windeployqt.cpp
+++ b/tests/auto/windeployqt/tst_windeployqt.cpp
@@ -146,7 +146,7 @@ void tst_windeployqt::deploy()
qPrintable(errorMessage));
// Create environment with Qt and all "lib" paths removed.
- const QString qtBinDir = QDir::toNativeSeparators(QLibraryInfo::location(QLibraryInfo::BinariesPath));
+ const QString qtBinDir = QDir::toNativeSeparators(QLibraryInfo::path(QLibraryInfo::BinariesPath));
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
const QString pathKey = QLatin1String("PATH");
const QChar pathSeparator(QLatin1Char(';')); // ### fixme: Qt 5.6: QDir::listSeparator()