From dbf407cfb039a4ea7ccd49a3728d2ab9860d9601 Mon Sep 17 00:00:00 2001 From: Christina Roßmanith Date: Thu, 24 Feb 2011 19:58:07 +0100 Subject: Remove dead code --- connectivity/source/drivers/jdbc/JConnection.cxx | 4 ++-- connectivity/source/drivers/jdbc/ResultSet.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/connectivity/source/drivers/jdbc/JConnection.cxx b/connectivity/source/drivers/jdbc/JConnection.cxx index c7f358a5631e..90209d8c528b 100644 --- a/connectivity/source/drivers/jdbc/JConnection.cxx +++ b/connectivity/source/drivers/jdbc/JConnection.cxx @@ -427,9 +427,9 @@ Reference< ::com::sun::star::container::XNameAccess > SAL_CALL java_sql_Connecti SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!"); static jmethodID mID(NULL); - /*jobject out = */callObjectMethod(t.pEnv,"getTypeMap","()Ljava/util/Map;", mID); + callObjectMethod(t.pEnv,"getTypeMap","()Ljava/util/Map;", mID); // WARNING: the caller becomes the owner of the returned pointer - return 0;// ? 0 : Map2XNameAccess( t.pEnv, out ); + return 0; } // ------------------------------------------------------------------------- void SAL_CALL java_sql_Connection::setTypeMap( const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException) diff --git a/connectivity/source/drivers/jdbc/ResultSet.cxx b/connectivity/source/drivers/jdbc/ResultSet.cxx index d7c3fbcfcf4a..09e28dbac4c1 100644 --- a/connectivity/source/drivers/jdbc/ResultSet.cxx +++ b/connectivity/source/drivers/jdbc/ResultSet.cxx @@ -893,7 +893,7 @@ void SAL_CALL java_sql_ResultSet::updateNumericObject( sal_Int32 columnIndex, co } else pBigDecimal.reset(new java_math_BigDecimal(::comphelper::getString(x))); - //obj = convertwchar_tToJavaString(t.pEnv,::comphelper::getString(x)); + t.pEnv->CallVoidMethod( object, mID, columnIndex,pBigDecimal->getJavaObject(),scale); ThrowLoggedSQLException( m_aLogger, t.pEnv, *this ); } -- cgit