summaryrefslogtreecommitdiffstats
path: root/src/tools/uic/cpp/cppwriteincludes.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-05-27 11:02:35 +0200
committerLars Knoll <lars.knoll@qt.io>2020-06-15 10:44:04 +0200
commit2393432cd0578d211e78957a4f24f74e7a484114 (patch)
treec337523b5bd42c678841015a37408bbacd38928e /src/tools/uic/cpp/cppwriteincludes.cpp
parent31828b3d6b658ef69faaee1f4d2a06a701967294 (diff)
Port androiddeployqt and uic from QStringRef to QStringView
Task-number: QTBUG-84319 Change-Id: I7f30a4d73dd98ee1977645d7274816cd71307506 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/tools/uic/cpp/cppwriteincludes.cpp')
-rw-r--r--src/tools/uic/cpp/cppwriteincludes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/uic/cpp/cppwriteincludes.cpp b/src/tools/uic/cpp/cppwriteincludes.cpp
index b9190b8295d..9784825c72e 100644
--- a/src/tools/uic/cpp/cppwriteincludes.cpp
+++ b/src/tools/uic/cpp/cppwriteincludes.cpp
@@ -315,7 +315,7 @@ void WriteIncludes::writeHeaders(const OrderedSet &headers, bool global)
// Check for the old headers 'qslider.h' and replace by 'QtGui/QSlider'
for (const QString &header : headers) {
const QString value = m_oldHeaderToNewHeader.value(header, header);
- const auto trimmed = QStringRef(&value).trimmed();
+ const auto trimmed = QStringView(value).trimmed();
if (!trimmed.isEmpty())
m_output << "#include " << openingQuote << trimmed << closingQuote << '\n';
}