diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-04-22 15:13:33 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-04-22 15:13:33 +0100 |
commit | ffd3c8e7dcf3bee3304d7c28d8102bf343b64c76 (patch) | |
tree | 78f3cc6ce79e1aad4da917865c4a2669aac90e93 /libodbcpp/odbc-mock.cpp | |
parent | Mark potential fall-through (diff) | |
download | libdbpp-odbc-1.2.0.tar.bz2 libdbpp-odbc-1.2.0.tar.xz libdbpp-odbc-1.2.0.zip |
C++17libdbpp-odbc-1.2.0
Updates code largely in-keeping with updates to be C++17 in line with
libadhocutil and libdbpp.
Diffstat (limited to 'libodbcpp/odbc-mock.cpp')
-rw-r--r-- | libodbcpp/odbc-mock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libodbcpp/odbc-mock.cpp b/libodbcpp/odbc-mock.cpp index 0ab6ee6..cf28570 100644 --- a/libodbcpp/odbc-mock.cpp +++ b/libodbcpp/odbc-mock.cpp @@ -13,10 +13,10 @@ Mock::Mock(const std::string & b, const std::string & masterdb, const std::strin } AdHocFormatter(MockConnStr, "%?;Database=%?"); -DB::Connection * +DB::ConnectionPtr Mock::openConnection() const { - return new Connection(MockConnStr::get(base, testDbName)); + return std::make_shared<Connection>(MockConnStr::get(base, testDbName)); } Mock::~Mock() |