From 3953d416537f44af979c36824fd9f29121c8c2c6 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 10 Dec 2020 18:50:15 +0000 Subject: Add override/explicit tags --- libmysqlpp/my-command.h | 2 +- libmysqlpp/my-connection.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'libmysqlpp') diff --git a/libmysqlpp/my-command.h b/libmysqlpp/my-command.h index 53f37c5..9b6d72a 100644 --- a/libmysqlpp/my-command.h +++ b/libmysqlpp/my-command.h @@ -10,7 +10,7 @@ namespace MySQL { class Command : public virtual DB::Command { public: Command(const Connection *, const std::string & sql); - virtual ~Command() = 0; + virtual ~Command() override = 0; void bindParamI(unsigned int, int) override; void bindParamI(unsigned int, long int) override; diff --git a/libmysqlpp/my-connection.h b/libmysqlpp/my-connection.h index 073acda..184dafe 100644 --- a/libmysqlpp/my-connection.h +++ b/libmysqlpp/my-connection.h @@ -9,15 +9,15 @@ namespace MySQL { class ConnectionError : public virtual Error, public virtual DB::ConnectionError { public: - ConnectionError(MYSQL *); + explicit ConnectionError(MYSQL *); }; class LoadContext; class Connection : public DB::Connection { public: - Connection(const std::string & info); - ~Connection(); + explicit Connection(const std::string & info); + ~Connection() override; void beginTxInt() override; void commitTxInt() override; -- cgit v1.2.3