Skip to content
Snippets Groups Projects
Commit 09228344 authored by Bill King's avatar Bill King
Browse files

Coverity: Fixes value hides parameter issue.

parent f09eca29
No related branches found
No related tags found
No related merge requests found
...@@ -220,9 +220,9 @@ QStringList HelpManager::findKeywords(const QString &key, int maxHits) const ...@@ -220,9 +220,9 @@ QStringList HelpManager::findKeywords(const QString &key, int maxHits) const
query.exec(QString::fromLatin1("SELECT DISTINCT Name FROM " query.exec(QString::fromLatin1("SELECT DISTINCT Name FROM "
"IndexTable WHERE Name LIKE '%%1%'").arg(key)); "IndexTable WHERE Name LIKE '%%1%'").arg(key));
while (query.next()) { while (query.next()) {
const QString &key = query.value(0).toString(); const QString &keyValue = query.value(0).toString();
if (!key.isEmpty()) { if (!keyValue.isEmpty()) {
keywords.append(key); keywords.append(keyValue);
if (keywords.count() == maxHits) if (keywords.count() == maxHits)
return keywords; return keywords;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment