aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qmljs/qmljsdocument.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2025-11-12 16:51:34 +0100
committerhjk <[email protected]>2025-11-13 09:42:00 +0000
commit690ff4bacd922436bf308ea399d3f0ee80d42fcc (patch)
tree8ae30efa372ad5b65ec261be110b9b1ebfe1b326 /src/libs/qmljs/qmljsdocument.cpp
parentfadbd348a516f16b25863e2e04f14be2effda0a8 (diff)
Use QString::size() instead QString::length()
Minor gain in debug builds and when stepping. Change-Id: I2540d309661e4babfd7331b068c17657ded2a098 Reviewed-by: David Schulz <[email protected]>
Diffstat (limited to 'src/libs/qmljs/qmljsdocument.cpp')
-rw-r--r--src/libs/qmljs/qmljsdocument.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/qmljs/qmljsdocument.cpp b/src/libs/qmljs/qmljsdocument.cpp
index 420a5bd9c54..5e973bec4b9 100644
--- a/src/libs/qmljs/qmljsdocument.cpp
+++ b/src/libs/qmljs/qmljsdocument.cpp
@@ -618,11 +618,11 @@ LibraryInfo Snapshot::libraryInfo(const Utils::FilePath &path) const
void ModuleApiInfo::addToHash(QCryptographicHash &hash) const
{
- int len = uri.length();
+ int len = uri.size();
hash.addData(QByteArrayView(reinterpret_cast<const char *>(&len), sizeof(len)));
hash.addData(QByteArrayView(reinterpret_cast<const char *>(uri.constData()), len * sizeofQChar));
version.addToHash(hash);
- len = cppName.length();
+ len = cppName.size();
hash.addData(QByteArrayView(reinterpret_cast<const char *>(&len), sizeof(len)));
hash.addData(QByteArrayView(reinterpret_cast<const char *>(cppName.constData()), len * sizeofQChar));
}