Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
09228344
Commit
09228344
authored
Jun 21, 2010
by
Bill King
Browse files
Coverity: Fixes value hides parameter issue.
parent
f09eca29
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/helpmanager.cpp
View file @
09228344
...
...
@@ -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
&
key
Value
=
query
.
value
(
0
).
toString
();
if
(
!
key
Value
.
isEmpty
())
{
keywords
.
append
(
key
Value
);
if
(
keywords
.
count
()
==
maxHits
)
return
keywords
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment