diff options
| author | Lars Knoll <lars.knoll@qt.io> | 2020-05-27 12:15:19 +0200 |
|---|---|---|
| committer | Lars Knoll <lars.knoll@qt.io> | 2020-06-12 15:51:11 +0200 |
| commit | 413a9f9bde60af2633c858435436891c8511385b (patch) | |
| tree | 0161904d587c6da62da52706c4cc9f3ad779433f /src/corelib/plugin/qpluginloader.cpp | |
| parent | d6b74761342bd3cc317ba5cfbca138be087fea2e (diff) | |
Port remaining usages of QStringRef in QtCore to QStringView
Task-number: QTBUG-84319
Change-Id: If77bc94c18e8d522b4577050091cd7d7aa941311
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/plugin/qpluginloader.cpp')
| -rw-r--r-- | src/corelib/plugin/qpluginloader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/plugin/qpluginloader.cpp b/src/corelib/plugin/qpluginloader.cpp index 0a63b93762c..2ae6913868e 100644 --- a/src/corelib/plugin/qpluginloader.cpp +++ b/src/corelib/plugin/qpluginloader.cpp @@ -293,8 +293,8 @@ static QString locatePlugin(const QString& fileName) // Split up "subdir/filename" const int slash = fileName.lastIndexOf(QLatin1Char('/')); - const QStringRef baseName = fileName.midRef(slash + 1); - const QStringRef basePath = isAbsolute ? QStringRef() : fileName.leftRef(slash + 1); // keep the '/' + const auto baseName = QStringView{fileName}.mid(slash + 1); + const auto basePath = isAbsolute ? QStringView() : QStringView{fileName}.left(slash + 1); // keep the '/' const bool debug = qt_debug_component(); |
