summaryrefslogtreecommitdiff
path: root/libsqlitepp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 05:01:53 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 06:00:07 +0000
commit65b66ae41ff5dd3d79e133f62d1f8e8fc851153b (patch)
tree308cab147259afc339f711f0e656faf654471e69 /libsqlitepp
parentNon-const insertId (diff)
downloadlibdbpp-sqlite-65b66ae41ff5dd3d79e133f62d1f8e8fc851153b.tar.bz2
libdbpp-sqlite-65b66ae41ff5dd3d79e133f62d1f8e8fc851153b.tar.xz
libdbpp-sqlite-65b66ae41ff5dd3d79e133f62d1f8e8fc851153b.zip
Add missing override attribute
Diffstat (limited to 'libsqlitepp')
-rw-r--r--libsqlitepp/sqlite-modifycommand.h2
-rw-r--r--libsqlitepp/sqlite-selectcommand.cpp4
-rw-r--r--libsqlitepp/sqlite-selectcommand.h4
3 files changed, 5 insertions, 5 deletions
diff --git a/libsqlitepp/sqlite-modifycommand.h b/libsqlitepp/sqlite-modifycommand.h
index 657639b..c71dd1f 100644
--- a/libsqlitepp/sqlite-modifycommand.h
+++ b/libsqlitepp/sqlite-modifycommand.h
@@ -11,7 +11,7 @@ namespace SQLite {
ModifyCommand(const Connection *, const std::string & sql);
virtual ~ModifyCommand();
- unsigned int execute(bool);
+ unsigned int execute(bool) override;
private:
void prepare() const;
diff --git a/libsqlitepp/sqlite-selectcommand.cpp b/libsqlitepp/sqlite-selectcommand.cpp
index ca72a9f..0f36653 100644
--- a/libsqlitepp/sqlite-selectcommand.cpp
+++ b/libsqlitepp/sqlite-selectcommand.cpp
@@ -14,11 +14,11 @@ namespace SQLite {
{
}
- bool isNull() const {
+ bool isNull() const override {
return (SQLITE_NULL == sqlite3_column_type(stmt, colNo));
}
- void apply(DB::HandleField & h) const {
+ void apply(DB::HandleField & h) const override {
switch (sqlite3_column_type(stmt, colNo)) {
case SQLITE_INTEGER:
h.integer(sqlite3_column_int64(stmt, colNo));
diff --git a/libsqlitepp/sqlite-selectcommand.h b/libsqlitepp/sqlite-selectcommand.h
index c795018..8c9b04d 100644
--- a/libsqlitepp/sqlite-selectcommand.h
+++ b/libsqlitepp/sqlite-selectcommand.h
@@ -11,8 +11,8 @@ namespace SQLite {
public:
SelectCommand(const Connection *, const std::string & sql);
- bool fetch();
- void execute();
+ bool fetch() override;
+ void execute() override;
};
}