From acf708cee945b8b843b0132672d79f5c4571c22b Mon Sep 17 00:00:00 2001 From: zecke Date: Thu, 24 Oct 2002 12:13:09 +0000 Subject: Fixed warnings Now we're down to two warning with number conversions Enable Saving Sessions Enable Copy and Paste --- (limited to 'noncore/apps/opie-console/io_bt.cpp') diff --git a/noncore/apps/opie-console/io_bt.cpp b/noncore/apps/opie-console/io_bt.cpp index 4486eea..8dd8151 100644 --- a/noncore/apps/opie-console/io_bt.cpp +++ b/noncore/apps/opie-console/io_bt.cpp @@ -24,6 +24,7 @@ void IOBt::close() { } bool IOBt::open() { + bool ret = false; // only set up bt stuff if mac address was set, otherwise use the device set if ( !m_mac.isEmpty() ) { @@ -39,7 +40,7 @@ bool IOBt::open() { this, SLOT( slotExited( OProcess* ) ) ); if ( m_attach->start() ) { - IOSerial::open(); + ret = IOSerial::open(); } else { qWarning("could not attach to device"); delete m_attach; @@ -49,8 +50,9 @@ bool IOBt::open() { // directly to the normal serial // TODO: look first if the connection really exists. ( is set up ) - IOSerial::open(); + ret =IOSerial::open(); } + return ret; } void IOBt::reload( const Profile &config ) { @@ -74,4 +76,5 @@ QString IOBt::name() const { void IOBt::slotExited( OProcess* proc ){ close(); + delete proc; } -- cgit v0.9.0.2