summaryrefslogtreecommitdiffstats
path: root/src/remoteobjects/qremoteobjectnode.cpp
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2021-02-17 13:09:59 +0100
committerMårten Nordheim <marten.nordheim@qt.io>2021-03-10 15:48:33 +0100
commit19f34fd84ca0dc55f2477680b02fb639f7abed82 (patch)
tree652ad27a91436596418d8a60759e9368100ec680 /src/remoteobjects/qremoteobjectnode.cpp
parent537e80d01b337fd3ef603e2c7a9651fd2623463a (diff)
Switch to using QStringView in a handful of functions
The functions don't take a copy, and does not need a QString for other purposes (e.g. QMap::contains(QString)), so they can be a QStringView. Task-number: QTBUG-90907 Change-Id: I05ad4cc4648ecb970a058dd914be76fe8468a446 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'src/remoteobjects/qremoteobjectnode.cpp')
-rw-r--r--src/remoteobjects/qremoteobjectnode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remoteobjects/qremoteobjectnode.cpp b/src/remoteobjects/qremoteobjectnode.cpp
index 5611359..ad92af4 100644
--- a/src/remoteobjects/qremoteobjectnode.cpp
+++ b/src/remoteobjects/qremoteobjectnode.cpp
@@ -2356,7 +2356,7 @@ void QRemoteObjectNode::addClientSideConnection(QIODevice *ioDevice)
version, but takes the name of the \l {Source} class as a parameter (\a
typeName) rather than deriving it from the class type.
*/
-QStringList QRemoteObjectNode::instances(const QString &typeName) const
+QStringList QRemoteObjectNode::instances(QStringView typeName) const
{
Q_D(const QRemoteObjectNode);
QStringList names;