summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-connection.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-10-13 12:53:57 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-10-13 12:53:57 +0100
commitf8bc7799183c32bf1bbd23900aa297753517d7cb (patch)
tree2abc107b585a026091f73ecaa61e7305377d7051 /libmysqlpp/my-connection.cpp
parentMySQL8 removes my_bool (diff)
downloadlibdbpp-mysql-f8bc7799183c32bf1bbd23900aa297753517d7cb.tar.bz2
libdbpp-mysql-f8bc7799183c32bf1bbd23900aa297753517d7cb.tar.xz
libdbpp-mysql-f8bc7799183c32bf1bbd23900aa297753517d7cb.zip
Modernize build
Diffstat (limited to 'libmysqlpp/my-connection.cpp')
-rw-r--r--libmysqlpp/my-connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmysqlpp/my-connection.cpp b/libmysqlpp/my-connection.cpp
index e5193ac..97924e3 100644
--- a/libmysqlpp/my-connection.cpp
+++ b/libmysqlpp/my-connection.cpp
@@ -200,7 +200,7 @@ MySQL::Connection::beginBulkUpload(const char * table, const char * extra)
auto sql = MySQLConnectionLoadData::get(table, extra);
mysql_send_query(&conn, sql.c_str(), sql.length());
- ctx = boost::shared_ptr<LoadContext>(new MySQL::LoadContext(&conn));
+ ctx = std::make_unique<LoadContext>(&conn);
mysql_set_local_infile_handler(&conn, LoadContext::local_infile_init, LoadContext::local_infile_read,
LoadContext::local_infile_end, LoadContext::local_infile_error, ctx.get());