summaryrefslogtreecommitdiff
path: root/libsqlitepp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-12-10 19:21:09 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2020-12-10 19:21:09 +0000
commit45c46ed4664ddad5bb37f5cece0359b4ab5da5b2 (patch)
treec5dcc360ec74d66af3332dabc06d14a8aaffe49e /libsqlitepp
parentUse local test library on request (diff)
downloadlibdbpp-sqlite-45c46ed4664ddad5bb37f5cece0359b4ab5da5b2.tar.bz2
libdbpp-sqlite-45c46ed4664ddad5bb37f5cece0359b4ab5da5b2.tar.xz
libdbpp-sqlite-45c46ed4664ddad5bb37f5cece0359b4ab5da5b2.zip
Add override/explicit tags
Diffstat (limited to 'libsqlitepp')
-rw-r--r--libsqlitepp/sqlite-command.h2
-rw-r--r--libsqlitepp/sqlite-connection.h6
-rw-r--r--libsqlitepp/sqlite-error.h2
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<DB::Error> {
public:
- Error(sqlite3 *);
+ explicit Error(sqlite3 *);
std::string message() const noexcept override;