diff options
Diffstat (limited to 'mysqlc')
-rw-r--r-- | mysqlc/source/mysqlc_statement.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mysqlc/source/mysqlc_statement.cxx b/mysqlc/source/mysqlc_statement.cxx index 60cc7f6b4efe..87ec8c547ce1 100644 --- a/mysqlc/source/mysqlc_statement.cxx +++ b/mysqlc/source/mysqlc_statement.cxx @@ -16,7 +16,12 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ + +#include <sal/config.h> + +#include <memory> #include <stdio.h> + #include "mysqlc_connection.hxx" #include "mysqlc_propertyids.hxx" #include "mysqlc_resultset.hxx" @@ -32,7 +37,6 @@ #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> @@ -180,7 +184,7 @@ Reference< XResultSet > SAL_CALL OCommonStatement::executeQuery(const OUString& Reference< XResultSet > xResultSet; try { - o3tl::heap_ptr< sql::ResultSet > rset(cppStatement->executeQuery(OUStringToOString(sSqlStatement, m_pConnection->getConnectionEncoding()).getStr())); + std::unique_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) { @@ -286,7 +290,7 @@ Reference< XResultSet > SAL_CALL OCommonStatement::getResultSet() Reference< XResultSet > xResultSet; try { - o3tl::heap_ptr< sql::ResultSet > rset(cppStatement->getResultSet()); + std::unique_ptr< sql::ResultSet > rset(cppStatement->getResultSet()); xResultSet = new OResultSet(this, rset.get(), m_pConnection->getConnectionEncoding()); rset.release(); } catch (const sql::SQLException &e) { |