Commit 09228344 authored by Bill King's avatar Bill King
Browse files

Coverity: Fixes value hides parameter issue.

parent f09eca29
......@@ -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 ( {
const QString &key = query.value(0).toString();
if (!key.isEmpty()) {
const QString &keyValue = query.value(0).toString();
if (!keyValue.isEmpty()) {
if (keywords.count() == maxHits)
return keywords;
Supports Markdown
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