summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/coreplugin/helpmanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/coreplugin/helpmanager.cpp b/src/plugins/coreplugin/helpmanager.cpp
index 85cf89a1a5..7d2ebc92c4 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;
}