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_irda.cpp') diff --git a/noncore/apps/opie-console/io_irda.cpp b/noncore/apps/opie-console/io_irda.cpp index 56a373c..b3b693f 100644 --- a/noncore/apps/opie-console/io_irda.cpp +++ b/noncore/apps/opie-console/io_irda.cpp @@ -21,6 +21,7 @@ void IOIrda::close() { } bool IOIrda::open() { + bool ret; // irdaattach here m_attach = new OProcess(); @@ -30,13 +31,14 @@ bool IOIrda::open() { this, SLOT( slotExited( OProcess* ) ) ); if ( m_attach->start() ) { - IOSerial::open(); + ret= IOSerial::open(); } else { // emit error!!! qWarning("could not attach to device"); delete m_attach; m_attach = 0l; } + return ret; } void IOIrda::reload( const Profile &config ) { @@ -59,4 +61,5 @@ QString IOIrda::name() const { void IOIrda::slotExited(OProcess* proc ){ close(); + delete proc; } -- cgit v0.9.0.2