summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qsoftkeymanager.cpp
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-10-07 10:00:50 (GMT)
committerJoão Abecasis <joao@abecasis.name>2009-10-07 10:44:42 (GMT)
commitd8e68a95c43d0eef4ac0ebc31c7dd0e6c487e3b2 (patch)
tree4e809748c271257e90b247b238ecb82e53d88cb9 /src/gui/kernel/qsoftkeymanager.cpp
parent3f371e2afc9b680b5747a94df57d29afe01204f1 (diff)
downloadQt-d8e68a95c43d0eef4ac0ebc31c7dd0e6c487e3b2.zip
Qt-d8e68a95c43d0eef4ac0ebc31c7dd0e6c487e3b2.tar.gz
Qt-d8e68a95c43d0eef4ac0ebc31c7dd0e6c487e3b2.tar.bz2
Fixing warnings on GCC... (III)
... by establishing a default behaviour for the switch statements that follow. Reviewed-by: Thierry Bastian
Diffstat (limited to 'src/gui/kernel/qsoftkeymanager.cpp')
-rw-r--r--src/gui/kernel/qsoftkeymanager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/kernel/qsoftkeymanager.cpp b/src/gui/kernel/qsoftkeymanager.cpp
index 265f971..cd3ad22 100644
--- a/src/gui/kernel/qsoftkeymanager.cpp
+++ b/src/gui/kernel/qsoftkeymanager.cpp
@@ -112,7 +112,7 @@ QAction *QSoftKeyManager::createAction(StandardSoftKey standardKey, QWidget *act
{
const char* text = standardSoftKeyText(standardKey);
QAction *action = new QAction(QSoftKeyManager::tr(text), actionWidget);
- QAction::SoftKeyRole softKeyRole;
+ QAction::SoftKeyRole softKeyRole = QAction::NoSoftKey;
switch (standardKey) {
case OkSoftKey:
case SelectSoftKey:
@@ -121,7 +121,6 @@ QAction *QSoftKeyManager::createAction(StandardSoftKey standardKey, QWidget *act
softKeyRole = QAction::PositiveSoftKey;
break;
case CancelSoftKey:
- default:
softKeyRole = QAction::NegativeSoftKey;
break;
}