summaryrefslogtreecommitdiffstats
path: root/tools/assistant/lib/qhelpcollectionhandler.cpp
diff options
context:
space:
mode:
authorck <qt-info@nokia.com>2009-11-10 15:43:30 (GMT)
committerck <qt-info@nokia.com>2009-11-10 15:43:30 (GMT)
commit3458ccf3a1b744f14b293bb1d2ce4d187930c09c (patch)
tree43e3143330f3a0acf623f18f304f708d16b58860 /tools/assistant/lib/qhelpcollectionhandler.cpp
parent1a693bc373167f9d76cd9842c4d8cc2531e741ff (diff)
downloadQt-3458ccf3a1b744f14b293bb1d2ce4d187930c09c.zip
Qt-3458ccf3a1b744f14b293bb1d2ce4d187930c09c.tar.gz
Qt-3458ccf3a1b744f14b293bb1d2ce4d187930c09c.tar.bz2
Assistant: Replace a "while" with an "if".
Reviewed-by: kh1
Diffstat (limited to 'tools/assistant/lib/qhelpcollectionhandler.cpp')
-rw-r--r--tools/assistant/lib/qhelpcollectionhandler.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/assistant/lib/qhelpcollectionhandler.cpp b/tools/assistant/lib/qhelpcollectionhandler.cpp
index 4aa7ab6..9092259 100644
--- a/tools/assistant/lib/qhelpcollectionhandler.cpp
+++ b/tools/assistant/lib/qhelpcollectionhandler.cpp
@@ -308,10 +308,8 @@ bool QHelpCollectionHandler::addCustomFilter(const QString &filterName,
m_query.prepare(QLatin1String("SELECT Id FROM FilterNameTable WHERE Name=?"));
m_query.bindValue(0, filterName);
m_query.exec();
- while (m_query.next()) {
+ if (m_query.next())
nameId = m_query.value(0).toInt();
- break;
- }
m_query.exec(QLatin1String("SELECT Id, Name FROM FilterAttributeTable"));
QStringList idsToInsert = attributes;