summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-04-09 13:43:22 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2018-04-11 21:56:55 +0100
commit7c6bac13f56651419449b9efaa545ae2d283f160 (patch)
treefb08390e08faca09be0599b7151f46ce955528ab
parentC++17 (diff)
downloadlibdbpp-7c6bac13f56651419449b9efaa545ae2d283f160.tar.bz2
libdbpp-7c6bac13f56651419449b9efaa545ae2d283f160.tar.xz
libdbpp-7c6bac13f56651419449b9efaa545ae2d283f160.zip
C++17
Update to work with slightly modified resource pool.
-rw-r--r--libdbpp/connectionPool.cpp4
-rw-r--r--libdbpp/connectionPool.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/libdbpp/connectionPool.cpp b/libdbpp/connectionPool.cpp
index 67ea3ca..739f48e 100644
--- a/libdbpp/connectionPool.cpp
+++ b/libdbpp/connectionPool.cpp
@@ -19,13 +19,13 @@ namespace DB {
}
void
- ConnectionPool::returnTestResource(const ConnectionCPtr & c) const
+ ConnectionPool::returnTestResource(Connection const * c) const
{
c->finish();
}
void
- ConnectionPool::testResource(const ConnectionCPtr & c) const
+ ConnectionPool::testResource(Connection const * c) const
{
c->ping();
}
diff --git a/libdbpp/connectionPool.h b/libdbpp/connectionPool.h
index 2300abb..3b1eed8 100644
--- a/libdbpp/connectionPool.h
+++ b/libdbpp/connectionPool.h
@@ -21,9 +21,9 @@ namespace DB {
/// Create a new connection.
ConnectionPtr createResource() const override;
/// Ping a connection.
- void returnTestResource(const ConnectionCPtr &) const override;
+ void returnTestResource(Connection const *) const override;
/// Ping a connection.
- void testResource(const ConnectionCPtr &) const override;
+ void testResource(Connection const *) const override;
private:
const ConnectionFactoryCPtr factory;