From 09228344e5035896626fdf652055ce0cf6544eb8 Mon Sep 17 00:00:00 2001 From: Bill King <bill.king@nokia.com> Date: Mon, 21 Jun 2010 15:00:29 +1000 Subject: [PATCH] Coverity: Fixes value hides parameter issue. --- src/plugins/coreplugin/helpmanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/coreplugin/helpmanager.cpp b/src/plugins/coreplugin/helpmanager.cpp index 85cf89a1a51..7d2ebc92c42 100644 --- a/src/plugins/coreplugin/helpmanager.cpp +++ b/src/plugins/coreplugin/helpmanager.cpp @@ -220,9 +220,9 @@ QStringList HelpManager::findKeywords(const QString &key, int maxHits) const query.exec(QString::fromLatin1("SELECT DISTINCT Name FROM " "IndexTable WHERE Name LIKE '%%1%'").arg(key)); while (query.next()) { - const QString &key = query.value(0).toString(); - if (!key.isEmpty()) { - keywords.append(key); + const QString &keyValue = query.value(0).toString(); + if (!keyValue.isEmpty()) { + keywords.append(keyValue); if (keywords.count() == maxHits) return keywords; } -- GitLab