From 151729eb3e4e4cfbb69db1f027e74188cf55c328 Mon Sep 17 00:00:00 2001 From: zecke Date: Mon, 21 Oct 2002 22:15:31 +0000 Subject: Fix the addPage bug... and avoid some compiler warnings. REMEMBER WARNINGS ARE BUGS --- (limited to 'noncore/apps/opie-console/btconfigwidget.cpp') diff --git a/noncore/apps/opie-console/btconfigwidget.cpp b/noncore/apps/opie-console/btconfigwidget.cpp index 6246f92..64046d8 100644 --- a/noncore/apps/opie-console/btconfigwidget.cpp +++ b/noncore/apps/opie-console/btconfigwidget.cpp @@ -11,7 +11,7 @@ namespace { void setCurrent( const QString& str, QComboBox* bo ) { uint b = bo->count(); - for (uint i = 0; i < bo->count(); i++ ) { + for (int i = 0; i < bo->count(); i++ ) { if ( bo->text(i) == str ) { bo->setCurrentItem( i ); return; @@ -116,6 +116,7 @@ void BTConfigWidget::load( const Profile& prof ) { */ void BTConfigWidget::save( Profile& prof ) { int flow, parity, speed; + flow = parity = speed = 0; prof.writeEntry("Device", m_deviceCmb->currentText() ); @@ -156,6 +157,7 @@ void BTConfigWidget::save( Profile& prof ) { case IOLayerBase::Baud_19200: speed = 19200; break; + default: case IOLayerBase::Baud_9600: speed = 9600; break; -- cgit v0.9.0.2