From f94fffaf529052b4b959a64c2a6bf2671e7750ed Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 30 Sep 2014 12:28:08 +0200 Subject: [PATCH] mysqlc: std::auto_ptr -> std::unique_ptr Change-Id: I0eb5f9fab5955d1f5790d3f5d269e069aff1c201 --- mysqlc/source/mysqlc_connection.cxx | 2 +- mysqlc/source/mysqlc_connection.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;