diff --git a/mysqlc/source/mysqlc_connection.cxx b/mysqlc/source/mysqlc_connection.cxx index 9773703f6bd8..588fb6e5d1a3 100644 --- a/mysqlc/source/mysqlc_connection.cxx +++ b/mysqlc/source/mysqlc_connection.cxx @@ -215,7 +215,7 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue > 0, Any()); } - std::auto_ptr stmt(m_settings.cppConnection->createStatement()); + std::unique_ptr stmt(m_settings.cppConnection->createStatement()); stmt->executeUpdate("SET session sql_mode='ANSI_QUOTES'"); stmt->executeUpdate("SET NAMES utf8"); } diff --git a/mysqlc/source/mysqlc_connection.hxx b/mysqlc/source/mysqlc_connection.hxx index 05eb3bd37bee..5a20051984c3 100644 --- a/mysqlc/source/mysqlc_connection.hxx +++ b/mysqlc/source/mysqlc_connection.hxx @@ -73,7 +73,7 @@ namespace connectivity struct ConnectionSettings { rtl_TextEncoding encoding; - std::auto_ptr cppConnection; + std::unique_ptr cppConnection; OUString schema; OUString quoteIdentifier; OUString connectionURL;