summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-10-07 11:59:32 +0200
committerJoão Abecasis <joao@abecasis.name>2009-10-07 12:44:42 +0200
commit3f371e2afc9b680b5747a94df57d29afe01204f1 (patch)
tree3c14c8f9a4fa6c9363789f0bb9d3a48aa529e712 /tools
parent038f3eef0f5a0d3012a1529fd4b768bbb9b8fb3c (diff)
Fixing warnings on GCC... (II)
... by establishing a default behaviour for the switch statements that follow. Reviewed-by: ck
Diffstat (limited to 'tools')
-rw-r--r--tools/assistant/lib/qhelpsearchquerywidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/assistant/lib/qhelpsearchquerywidget.cpp b/tools/assistant/lib/qhelpsearchquerywidget.cpp
index 9ac4a7d9e8..361e9ac898 100644
--- a/tools/assistant/lib/qhelpsearchquerywidget.cpp
+++ b/tools/assistant/lib/qhelpsearchquerywidget.cpp
@@ -229,7 +229,7 @@ private:
const QList<QHelpSearchQuery> &query =
queryHist->queries.at(queryHist->curQuery);
foreach (const QHelpSearchQuery &queryPart, query) {
- QLineEdit *lineEdit;
+ QLineEdit *lineEdit = 0;
switch (queryPart.fieldName) {
case QHelpSearchQuery::DEFAULT:
lineEdit = defaultQuery;