summaryrefslogtreecommitdiff
path: root/mysqlc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-09-30 12:28:08 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-09-30 12:28:53 +0200
commitf94fffaf529052b4b959a64c2a6bf2671e7750ed (patch)
tree28ebb368ca6520aed01819a42b3f4d0d8c69147b /mysqlc
parent5e557a5f987b70f064e3381bda45bd882d651546 (diff)
mysqlc: std::auto_ptr -> std::unique_ptr
Change-Id: I0eb5f9fab5955d1f5790d3f5d269e069aff1c201
Diffstat (limited to 'mysqlc')
-rw-r--r--mysqlc/source/mysqlc_connection.cxx2
-rw-r--r--mysqlc/source/mysqlc_connection.hxx2
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<sql::Statement> stmt(m_settings.cppConnection->createStatement());
+ std::unique_ptr<sql::Statement> 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<sql::Connection> cppConnection;
+ std::unique_ptr<sql::Connection> cppConnection;
OUString schema;
OUString quoteIdentifier;
OUString connectionURL;