summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2014-02-20 11:02:54 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2014-02-20 11:25:30 +0900
commitc92753e39575b4b823ce9df8f10fc8ecb8a9915e (patch)
tree788b8420e98a56fca51e15f7d0473d75888c8d69 /connectivity
parent22b709e84a7b6d38cab2dd37f2f2b28e0fc9d062 (diff)
Replace deprecated std::auto_ptr with boost::scoped_ptr
Change-Id: Iafdebacd43ed24a30fb8e2d041fe975a1adbcfa0
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/jdbc/Object.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/drivers/jdbc/Object.cxx b/connectivity/source/drivers/jdbc/Object.cxx
index 461c1badaa76..f2a9ece8c85b 100644
--- a/connectivity/source/drivers/jdbc/Object.cxx
+++ b/connectivity/source/drivers/jdbc/Object.cxx
@@ -30,7 +30,7 @@
#include <comphelper/logging.hxx>
-#include <memory>
+#include <boost/scoped_ptr.hpp>
using namespace connectivity;
using namespace ::com::sun::star::uno;
@@ -172,14 +172,14 @@ namespace
if ( _pEnvironment->IsInstanceOf( jThrow, java_sql_SQLException_BASE::st_getMyClass() ) )
{
- ::std::auto_ptr< java_sql_SQLException_BASE > pException( new java_sql_SQLException_BASE( _pEnvironment, jThrow ) );
+ boost::scoped_ptr< java_sql_SQLException_BASE > pException( new java_sql_SQLException_BASE( _pEnvironment, jThrow ) );
_out_rException = SQLException( pException->getMessage(), _rxContext,
pException->getSQLState(), pException->getErrorCode(), Any() );
return true;
}
else if ( _pEnvironment->IsInstanceOf( jThrow, java_lang_Throwable::st_getMyClass() ) )
{
- ::std::auto_ptr< java_lang_Throwable > pThrow( new java_lang_Throwable( _pEnvironment, jThrow ) );
+ boost::scoped_ptr< java_lang_Throwable > pThrow( new java_lang_Throwable( _pEnvironment, jThrow ) );
#if OSL_DEBUG_LEVEL > 0
pThrow->printStackTrace();
#endif