From 2d7c7d4f13c21d7c5b259c8724d3add1f506dd12 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 15 Apr 2018 15:10:58 +0100 Subject: C++17 Upgrade everything to C++17 --- libmysqlpp/my-connection.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libmysqlpp/my-connection.cpp') diff --git a/libmysqlpp/my-connection.cpp b/libmysqlpp/my-connection.cpp index acc89cd..da3f3c6 100644 --- a/libmysqlpp/my-connection.cpp +++ b/libmysqlpp/my-connection.cpp @@ -127,16 +127,16 @@ MySQL::Connection::ping() const } -DB::SelectCommand * -MySQL::Connection::newSelectCommand(const std::string & sql, const DB::CommandOptions *) +DB::SelectCommandPtr +MySQL::Connection::select(const std::string & sql, const DB::CommandOptionsCPtr &) { - return new SelectCommand(this, sql); + return std::make_shared(this, sql); } -DB::ModifyCommand * -MySQL::Connection::newModifyCommand(const std::string & sql, const DB::CommandOptions *) +DB::ModifyCommandPtr +MySQL::Connection::modify(const std::string & sql, const DB::CommandOptionsCPtr &) { - return new ModifyCommand(this, sql); + return std::make_shared(this, sql); } namespace MySQL { -- cgit v1.2.3