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-mock.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-mock.cpp')
-rw-r--r-- | libmysqlpp/my-mock.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libmysqlpp/my-mock.cpp b/libmysqlpp/my-mock.cpp index 8cf3057..fb00ef5 100644 --- a/libmysqlpp/my-mock.cpp +++ b/libmysqlpp/my-mock.cpp @@ -13,16 +13,11 @@ Mock::Mock(const std::string & master, const std::string & name, const std::vect PlaySchemaScripts(ss); } -Mock::Mock(const std::string & name, const std::vector<boost::filesystem::path> & ss) : - Mock("options=p2testmysql", name, ss) -{ -} - AdHocFormatter(MockConnStr, "options=p2testmysql;database=%?"); -DB::Connection * +DB::ConnectionPtr Mock::openConnection() const { - return new Connection(MockConnStr::get(testDbName)); + return std::make_shared<Connection>(MockConnStr::get(testDbName)); } Mock::~Mock() |