[Libreoffice-commits] .: connectivity/source

Noel Power noelp at kemper.freedesktop.org
Fri Oct 28 02:39:09 PDT 2011


 connectivity/source/drivers/odbcbase/OConnection.cxx |   11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

New commits:
commit d0fb0305c4c0d46a4941e5f2464cbddb3fc72c70
Author: Noel Power <noel.power at novell.com>
Date:   Fri Oct 28 10:37:28 2011 +0100

    tweak debug messages from commit 9b58d9353073c6535da0529cd9a48e435f043fa8

diff --git a/connectivity/source/drivers/odbcbase/OConnection.cxx b/connectivity/source/drivers/odbcbase/OConnection.cxx
index 03bc39b..0ea6448 100644
--- a/connectivity/source/drivers/odbcbase/OConnection.cxx
+++ b/connectivity/source/drivers/odbcbase/OConnection.cxx
@@ -82,17 +82,10 @@ OConnection::~OConnection()
         SQLRETURN rc;
 
         rc = N3SQLDisconnect( m_aConnectionHandle );
-        if ( SQL_SUCCESS           != rc &&
-             SQL_SUCCESS_WITH_INFO != rc )
-            OSL_TRACE( "Failure from SQLDisconnect, %s:%i"
-                     , __FILE__, __LINE__
-                     );
+        OSL_ENSURE( rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO, "Failure from SQLDisconnect" );
 
         rc = N3SQLFreeHandle( SQL_HANDLE_DBC, m_aConnectionHandle );
-        if ( SQL_SUCCESS != rc )
-            OSL_TRACE( "Failure from SQLFreeHandle for connection, %s:%i"
-                     , __FILE__, __LINE__
-                     );
+        OSL_ENSURE( rc == SQL_SUCCESS , "Failure from SQLFreeHandle for connection");
 
         m_aConnectionHandle = SQL_NULL_HANDLE;
     }


More information about the Libreoffice-commits mailing list