From da43cf70a9d125576f3795d7088e0100a4035ce5 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 22 Apr 2022 09:57:51 +0200 Subject: Migrate from QLatin1String to UTF-16 string literals Use the QStringView overloads of the comparison functions in order to minimize merge conflicts after the deprecation of QLatin1String in 6.4. Task-number: QTBUG-98434 Pick-to: 6.3 6.2 Change-Id: Ia0df398ab8f3e61a0b629971ccbec2273a78499b Reviewed-by: Christian Tismer --- sources/shiboken6/ApiExtractor/codesniphelpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sources/shiboken6/ApiExtractor/codesniphelpers.cpp') diff --git a/sources/shiboken6/ApiExtractor/codesniphelpers.cpp b/sources/shiboken6/ApiExtractor/codesniphelpers.cpp index 4002729fc..42f68aa43 100644 --- a/sources/shiboken6/ApiExtractor/codesniphelpers.cpp +++ b/sources/shiboken6/ApiExtractor/codesniphelpers.cpp @@ -77,7 +77,7 @@ QString CodeSnipHelpers::fixSpaces(QString code) { code.remove(u'\r'); // Check for XML \nbla... - if (code.startsWith(QLatin1String("\n "))) + if (code.startsWith(u"\n ")) code.remove(0, 1); while (!code.isEmpty() && code.back().isSpace()) code.chop(1); -- cgit v1.2.3