mysqlc: std::auto_ptr -> std::unique_ptr

Change-Id: I0eb5f9fab5955d1f5790d3f5d269e069aff1c201
This commit is contained in:
Stephan Bergmann
2014-09-30 12:28:08 +02:00
parent 5e557a5f98
commit f94fffaf52
2 changed files with 2 additions and 2 deletions

View File

@@ -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");
}

View File

@@ -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;