From 7c6bac13f56651419449b9efaa545ae2d283f160 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 9 Apr 2018 13:43:22 +0100 Subject: C++17 Update to work with slightly modified resource pool. --- libdbpp/connectionPool.cpp | 4 ++-- libdbpp/connectionPool.h | 4 ++-- 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; -- cgit v1.2.3