Commit 33bc88aa authored by Laurent Montel's avatar Laurent Montel 😁

Fix warning. Make it const

parent d07c71fc
......@@ -203,9 +203,7 @@ bool WebViewAccessKey::checkForAccessKey(QKeyEvent *event)
QChar key = text.at(0).toUpper();
bool handled = false;
if (d->mAccessKeyNodes.contains(key)) {
QWebElement element = d->mAccessKeyNodes[key];
QPoint p = element.geometry().center();
const QWebElement element = d->mAccessKeyNodes[key];
if (element.tagName().compare(QLatin1String("A"), Qt::CaseInsensitive) == 0) {
const QString linkKey(linkElementKey(element));
if (!linkKey.isEmpty()) {
......
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