author | zecke <zecke> | 2002-10-21 22:15:31 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-21 22:15:31 (UTC) |
commit | 151729eb3e4e4cfbb69db1f027e74188cf55c328 (patch) (unidiff) | |
tree | 73705a6ca967933780062a95756dc18ae7bd8167 /noncore/apps/opie-console/irdaconfigwidget.cpp | |
parent | 5bcd4ccebd86f912c693de16675da44d21e11d94 (diff) | |
download | opie-151729eb3e4e4cfbb69db1f027e74188cf55c328.zip opie-151729eb3e4e4cfbb69db1f027e74188cf55c328.tar.gz opie-151729eb3e4e4cfbb69db1f027e74188cf55c328.tar.bz2 |
Fix the addPage bug... and avoid some compiler warnings. REMEMBER WARNINGS ARE BUGS
Diffstat (limited to 'noncore/apps/opie-console/irdaconfigwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/irdaconfigwidget.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/irdaconfigwidget.cpp b/noncore/apps/opie-console/irdaconfigwidget.cpp index 72e99a1..059530d 100644 --- a/noncore/apps/opie-console/irdaconfigwidget.cpp +++ b/noncore/apps/opie-console/irdaconfigwidget.cpp | |||
@@ -8,7 +8,7 @@ | |||
8 | namespace { | 8 | namespace { |
9 | void setCurrent( const QString& str, QComboBox* bo ) { | 9 | void setCurrent( const QString& str, QComboBox* bo ) { |
10 | uint b = bo->count(); | 10 | uint b = bo->count(); |
11 | for (uint i = 0; i < bo->count(); i++ ) { | 11 | for (int i = 0; i < bo->count(); i++ ) { |
12 | if ( bo->text(i) == str ) { | 12 | if ( bo->text(i) == str ) { |
13 | bo->setCurrentItem( i ); | 13 | bo->setCurrentItem( i ); |
14 | return; | 14 | return; |
@@ -95,6 +95,7 @@ void IrdaConfigWidget::load( const Profile& prof ) { | |||
95 | */ | 95 | */ |
96 | void IrdaConfigWidget::save( Profile& prof ) { | 96 | void IrdaConfigWidget::save( Profile& prof ) { |
97 | int flow, parity, speed; | 97 | int flow, parity, speed; |
98 | flow = parity = speed = 0; | ||
98 | prof.writeEntry("Device", m_deviceCmb->currentText() ); | 99 | prof.writeEntry("Device", m_deviceCmb->currentText() ); |
99 | 100 | ||
100 | switch( m_base->flow() ) { | 101 | switch( m_base->flow() ) { |
@@ -135,6 +136,7 @@ void IrdaConfigWidget::save( Profile& prof ) { | |||
135 | case IOLayerBase::Baud_19200: | 136 | case IOLayerBase::Baud_19200: |
136 | speed = 19200; | 137 | speed = 19200; |
137 | break; | 138 | break; |
139 | default: | ||
138 | case IOLayerBase::Baud_9600: | 140 | case IOLayerBase::Baud_9600: |
139 | speed = 9600; | 141 | speed = 9600; |
140 | break; | 142 | break; |