From 448720848b383639c37f5f0487efdf8c0f0ed433 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 28 Mar 2020 17:55:41 +0000 Subject: Fixes for tidy --- libpqpp/pq-connection.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'libpqpp/pq-connection.h') diff --git a/libpqpp/pq-connection.h b/libpqpp/pq-connection.h index 18a0198..833330b 100644 --- a/libpqpp/pq-connection.h +++ b/libpqpp/pq-connection.h @@ -5,21 +5,24 @@ #include #include #include +#include #include "pq-error.h" namespace PQ { class ConnectionError : public virtual Error, public virtual DB::ConnectionError { public: - ConnectionError(const PGconn *); + explicit ConnectionError(const PGconn *); }; class DLL_PUBLIC Connection : public DB::Connection { public: - typedef std::size_t StatementHash; - typedef std::map PreparedStatements; + using StatementHash = std::size_t; + using PreparedStatements = std::map; - Connection(const std::string & info); - ~Connection(); + explicit Connection(const std::string & info); + ~Connection() override; + + SPECIAL_MEMBERS_MOVE_RO(Connection); void beginTxInt() override; void commitTxInt() override; -- cgit v1.2.3