summaryrefslogtreecommitdiff
path: root/libmysqlpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-12-10 18:50:15 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2020-12-10 18:50:15 +0000
commit3953d416537f44af979c36824fd9f29121c8c2c6 (patch)
tree8e0cdf0d9a2f59d0907f0574b92c87ff0d1d7b0f /libmysqlpp
parentAdd check that upload ctx is non-null (diff)
downloadlibdbpp-mysql-3953d416537f44af979c36824fd9f29121c8c2c6.tar.bz2
libdbpp-mysql-3953d416537f44af979c36824fd9f29121c8c2c6.tar.xz
libdbpp-mysql-3953d416537f44af979c36824fd9f29121c8c2c6.zip
Add override/explicit tags
Diffstat (limited to 'libmysqlpp')
-rw-r--r--libmysqlpp/my-command.h2
-rw-r--r--libmysqlpp/my-connection.h6
2 files changed, 4 insertions, 4 deletions
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;