From 45c46ed4664ddad5bb37f5cece0359b4ab5da5b2 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 10 Dec 2020 19:21:09 +0000 Subject: Add override/explicit tags --- libsqlitepp/sqlite-command.h | 2 +- libsqlitepp/sqlite-connection.h | 6 +++--- libsqlitepp/sqlite-error.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libsqlitepp/sqlite-command.h b/libsqlitepp/sqlite-command.h index 1fe9b6a..abf02ee 100644 --- a/libsqlitepp/sqlite-command.h +++ b/libsqlitepp/sqlite-command.h @@ -9,7 +9,7 @@ namespace SQLite { 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/libsqlitepp/sqlite-connection.h b/libsqlitepp/sqlite-connection.h index 0d77911..1be1514 100644 --- a/libsqlitepp/sqlite-connection.h +++ b/libsqlitepp/sqlite-connection.h @@ -8,13 +8,13 @@ namespace SQLite { class ConnectionError : public virtual Error, public virtual DB::ConnectionError { public: - ConnectionError(sqlite3 *); + explicit ConnectionError(sqlite3 *); }; 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; diff --git a/libsqlitepp/sqlite-error.h b/libsqlitepp/sqlite-error.h index 337cd1b..9735966 100644 --- a/libsqlitepp/sqlite-error.h +++ b/libsqlitepp/sqlite-error.h @@ -9,7 +9,7 @@ namespace SQLite { class Error : public AdHoc::Exception { public: - Error(sqlite3 *); + explicit Error(sqlite3 *); std::string message() const noexcept override; -- cgit v1.2.3