Kaydet (Commit) f94fffaf authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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

Change-Id: I0eb5f9fab5955d1f5790d3f5d269e069aff1c201
üst 5e557a5f
......@@ -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");
}
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment