diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-03 10:42:24 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-03 11:15:56 +0100 |
commit | 01b7bab7139b7f902e5570fc311d47f2ba5ef0e1 (patch) | |
tree | aa97f6ef43741427762e643c4038c45fa1b2ba0a /mysqlc | |
parent | 9072e25992c43b8d79c44cdf025f8d97f3342a70 (diff) |
auto_ptr -> heap_ptr
Change-Id: I1b11593fc936c0a4b45c319fd73ef3b629950752
Diffstat (limited to 'mysqlc')
-rw-r--r-- | mysqlc/source/mysqlc_statement.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mysqlc/source/mysqlc_statement.cxx b/mysqlc/source/mysqlc_statement.cxx index a95255968e05..0d5de2b47f7d 100644 --- a/mysqlc/source/mysqlc_statement.cxx +++ b/mysqlc/source/mysqlc_statement.cxx @@ -32,6 +32,7 @@ #include <cppconn/exception.h> #include <cppconn/statement.h> #include <cppuhelper/typeprovider.hxx> +#include <o3tl/heap_ptr.hxx> #include <osl/diagnose.h> #include <osl/thread.h> @@ -201,7 +202,7 @@ Reference< XResultSet > SAL_CALL OCommonStatement::executeQuery(const OUString& Reference< XResultSet > xResultSet; try { - std::auto_ptr< sql::ResultSet > rset(cppStatement->executeQuery(OUStringToOString(sSqlStatement, m_pConnection->getConnectionEncoding()).getStr())); + o3tl::heap_ptr< sql::ResultSet > rset(cppStatement->executeQuery(OUStringToOString(sSqlStatement, m_pConnection->getConnectionEncoding()).getStr())); xResultSet = new OResultSet(this, rset.get(), m_pConnection->getConnectionEncoding()); rset.release(); } catch (const sql::SQLException &e) { @@ -307,7 +308,7 @@ Reference< XResultSet > SAL_CALL OCommonStatement::getResultSet() Reference< XResultSet > xResultSet; try { - std::auto_ptr< sql::ResultSet > rset(cppStatement->getResultSet()); + o3tl::heap_ptr< sql::ResultSet > rset(cppStatement->getResultSet()); xResultSet = new OResultSet(this, rset.get(), m_pConnection->getConnectionEncoding()); rset.release(); } catch (const sql::SQLException &e) { |