Commit 64cb9c53 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Minor optimization

parent 455058be
Pipeline #55907 passed with stage
in 42 minutes and 17 seconds
...@@ -321,7 +321,7 @@ void WebEngineAccessKey::handleSearchAccessKey(const QVariant &res) ...@@ -321,7 +321,7 @@ void WebEngineAccessKey::handleSearchAccessKey(const QVariant &res)
} }
QChar accessKey; QChar accessKey;
const QString text = element.innerText().toUpper(); const QString text = element.innerText().toUpper();
for (int i = 0; i < text.count(); ++i) { for (int i = 0, total = text.count(); i < total; ++i) {
const QChar &c = text.at(i); const QChar &c = text.at(i);
if (unusedKeys.contains(c)) { if (unusedKeys.contains(c)) {
accessKey = c; accessKey = c;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment