aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/abstractmetalang.h
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/abstractmetalang.h
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/abstractmetalang.h')
-rw-r--r--sources/shiboken6/ApiExtractor/abstractmetalang.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken6/ApiExtractor/abstractmetalang.h b/sources/shiboken6/ApiExtractor/abstractmetalang.h
index cb4bc0985..23a34e7e1 100644
--- a/sources/shiboken6/ApiExtractor/abstractmetalang.h
+++ b/sources/shiboken6/ApiExtractor/abstractmetalang.h
@@ -94,8 +94,8 @@ public:
void setFunctions(const AbstractMetaFunctionCList &functions);
void addFunction(const AbstractMetaFunctionCPtr &function);
bool hasFunction(const QString &str) const;
- AbstractMetaFunctionCPtr findFunction(const QString& functionName) const;
- AbstractMetaFunctionCList findFunctions(const QString& functionName) const;
+ AbstractMetaFunctionCPtr findFunction(QStringView functionName) const;
+ AbstractMetaFunctionCList findFunctions(QStringView functionName) const;
AbstractMetaFunctionCPtr findOperatorBool() const;
// Find a Qt-style isNull() method suitable for nb_bool
AbstractMetaFunctionCPtr findQtIsNullMethod() const;