aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/tests/testresolvetype.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-04-25 11:48:22 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-04-25 18:45:17 +0200
commit3d8431182e97c9c87220e8d8ddfcd3abde22e31d (patch)
tree3d43f356a8728e56c4ffbaa4e2bf1de8413a18be /sources/shiboken6/ApiExtractor/tests/testresolvetype.cpp
parent0ca1c4ba6ecc604c70353ab50008a1295ca49959 (diff)
shiboken6: Refactor AbstractMetaClass::findFunction[s]() to use QStringView
UTF-16 string literals can then be passed as search strings. Pick-to: 6.3 6.2 Task-number: QTBUG-98434 Change-Id: Id3ce2934840ec56b3e2c4e070ed47321a264afa9 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/tests/testresolvetype.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/tests/testresolvetype.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/ApiExtractor/tests/testresolvetype.cpp b/sources/shiboken6/ApiExtractor/tests/testresolvetype.cpp
index 2616951f4..bfea490e4 100644
--- a/sources/shiboken6/ApiExtractor/tests/testresolvetype.cpp
+++ b/sources/shiboken6/ApiExtractor/tests/testresolvetype.cpp
@@ -66,7 +66,7 @@ void TestResolveType::testResolveReturnTypeFromParentScope()
AbstractMetaClassList classes = builder->classes();
const AbstractMetaClass *classD = AbstractMetaClass::findClass(classes, u"A::D");
QVERIFY(classD);
- const auto meth = classD->findFunction(QLatin1String("method"));
+ const auto meth = classD->findFunction(u"method");
QVERIFY(!meth.isNull());
QVERIFY(meth);
}