diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-04-15 15:10:58 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-04-15 15:10:58 +0100 |
commit | 2d7c7d4f13c21d7c5b259c8724d3add1f506dd12 (patch) | |
tree | 98e50ec84dc594abd72c6981a3fc115c9fc3fb41 /libmysqlpp/my-connection.cpp | |
parent | Standalone split (diff) | |
download | libdbpp-mysql-2d7c7d4f13c21d7c5b259c8724d3add1f506dd12.tar.bz2 libdbpp-mysql-2d7c7d4f13c21d7c5b259c8724d3add1f506dd12.tar.xz libdbpp-mysql-2d7c7d4f13c21d7c5b259c8724d3add1f506dd12.zip |
C++17libdbpp-mysql-1.2.0
Upgrade everything to C++17
Diffstat (limited to 'libmysqlpp/my-connection.cpp')
-rw-r--r-- | libmysqlpp/my-connection.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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<SelectCommand>(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<ModifyCommand>(this, sql); } namespace MySQL { |