From 2393432cd0578d211e78957a4f24f74e7a484114 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 27 May 2020 11:02:35 +0200 Subject: Port androiddeployqt and uic from QStringRef to QStringView Task-number: QTBUG-84319 Change-Id: I7f30a4d73dd98ee1977645d7274816cd71307506 Reviewed-by: Thiago Macieira --- src/tools/uic/cpp/cppwriteincludes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools/uic/cpp/cppwriteincludes.cpp') 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'; } -- cgit v1.2.3