summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qmetaobject.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2025-04-08 15:03:24 +0200
committerMarc Mutz <marc.mutz@qt.io>2025-04-11 20:59:59 +0200
commitcac63042b1303511ef41642b3290e6d54d1a76b8 (patch)
tree0380d5e0375e2f5968b8ceb664ac867f05c2e27e /src/corelib/kernel/qmetaobject.cpp
parent1445a33b6fd4c7a401edf68e325e4527e18a667a (diff)
Port qMetaTypeTypeInternal() from const char* to QByteArrayView
The only caller of the function, QArgumentType, passes QByteArray::constData() to it, and the function then goes around and performs a strlen() in order to feed it into qMetaTypeTypeInternal(). Pass the name as a QByteArrayView, to save the strlen() over a string we already knew the length of. No measurable performance impact. Pick-to: 6.9 Task-number: QTBUG-135572 Change-Id: Ifccea7644ce86308df5fb7063c0269a579785504 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/corelib/kernel/qmetaobject.cpp')
0 files changed, 0 insertions, 0 deletions