diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-05-22 16:49:01 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-06-12 15:50:17 +0200 |
commit | 4d31ddf5730ad3eed59331811218b26284438cef (patch) | |
tree | 979df749241b7df2716fb1885ba464d6f530670d /src/corelib/io/qfilesystemwatcher.cpp | |
parent | 5caf7ef3b1c67cc65efd21d2341955230a6ed43c (diff) |
Port QDir, QFile from QStringRef to QStringView
Task-number: QTBUG-84319
Change-Id: I7feb5c12eb5a8504c34292e0da75332b5ba9ef20
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/io/qfilesystemwatcher.cpp')
-rw-r--r-- | src/corelib/io/qfilesystemwatcher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qfilesystemwatcher.cpp b/src/corelib/io/qfilesystemwatcher.cpp index a5e83ac11f..1712fec751 100644 --- a/src/corelib/io/qfilesystemwatcher.cpp +++ b/src/corelib/io/qfilesystemwatcher.cpp @@ -366,7 +366,7 @@ QStringList QFileSystemWatcher::addPaths(const QStringList &paths) if (Q_UNLIKELY(on.startsWith(QLatin1String("_qt_autotest_force_engine_")))) { // Autotest override case - use the explicitly selected engine only - const QStringRef forceName = on.midRef(26); + const auto forceName = QStringView{on}.mid(26); if (forceName == QLatin1String("poller")) { qCDebug(lcWatcher, "QFileSystemWatcher: skipping native engine, using only polling engine"); d_func()->initPollerEngine(); |