diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-03-28 17:55:41 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-03-28 17:55:41 +0000 |
commit | 448720848b383639c37f5f0487efdf8c0f0ed433 (patch) | |
tree | 28fb708836b0030a7813d35d3213e6153bbb757c /libpqpp/pq-connection.h | |
parent | Fixes for tidy (diff) | |
download | libdbpp-postgresql-448720848b383639c37f5f0487efdf8c0f0ed433.tar.bz2 libdbpp-postgresql-448720848b383639c37f5f0487efdf8c0f0ed433.tar.xz libdbpp-postgresql-448720848b383639c37f5f0487efdf8c0f0ed433.zip |
Fixes for tidylibdbpp-postgresql-1.4.4
Diffstat (limited to 'libpqpp/pq-connection.h')
-rw-r--r-- | libpqpp/pq-connection.h | 13 |
1 files changed, 8 insertions, 5 deletions
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 <set> #include <libpq-fe.h> #include <visibility.h> +#include <c++11Helpers.h> #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<StatementHash, std::string> PreparedStatements; + using StatementHash = std::size_t; + using PreparedStatements = std::map<StatementHash, std::string>; - 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; |