PKGBUILDs/qt6-activeqt/mingw-w64/0003-Fix-compile-error-abou...

38 lines
1.6 KiB
Diff
Raw Permalink Normal View History

2024-05-21 17:02:41 +02:00
From ddab7c616dc45d5827bdbd8c78465575edc4ef0c Mon Sep 17 00:00:00 2001
2022-09-11 12:19:18 +02:00
From: Martchus <martchus@gmx.net>
Date: Mon, 12 Sep 2022 17:38:47 +0200
Subject: [PATCH 3/3] Fix compile error about missing QStringView overload
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Prevents the following compiler error:
```
/build/mingw-w64-qt6-activeqt/src/qtactiveqt-everywhere-src-6.3.2/tools/dumpcpp/main.cpp:599:41: error: no match for operator+ (operand types are const QString and QStringView)
599 | moCode.insert(startType, ns + QStringView(u"::"));
| ~~ ^ ~~~~~~~~~~~~~~~~~~
| | |
| | QStringView
| const QString
```
---
tools/dumpcpp/main.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/dumpcpp/main.cpp b/tools/dumpcpp/main.cpp
2023-10-10 15:15:06 +02:00
index 679bf9e..d73457a 100644
2022-09-11 12:19:18 +02:00
--- a/tools/dumpcpp/main.cpp
+++ b/tools/dumpcpp/main.cpp
2023-10-10 15:15:06 +02:00
@@ -585,7 +585,7 @@ bool generateClassImpl(QTextStream &out, const QMetaObject *mo, const QByteArray
namespaceForTypeEntry = namespaceForType.constFind(type.toUtf8());
2022-09-11 12:19:18 +02:00
if (namespaceForTypeEntry != namespaceForType.constEnd()) {
const auto ns = QString::fromUtf8(namespaceForTypeEntry.value());
- moCode.insert(startType, ns + QStringView(u"::"));
+ moCode.insert(startType, ns + QStringLiteral("::"));
}
nextTypeAndForceComplete = startType + lengthType;
} while (true);
--
2024-05-21 17:02:41 +02:00
2.45.1
2022-09-11 12:19:18 +02:00