summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-mock.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-04-22 15:13:33 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2018-04-22 15:13:33 +0100
commitffd3c8e7dcf3bee3304d7c28d8102bf343b64c76 (patch)
tree78f3cc6ce79e1aad4da917865c4a2669aac90e93 /libodbcpp/odbc-mock.cpp
parentMark potential fall-through (diff)
downloadlibdbpp-odbc-1.2.0.tar.bz2
libdbpp-odbc-1.2.0.tar.xz
libdbpp-odbc-1.2.0.zip
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.cpp4
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()