From 65b66ae41ff5dd3d79e133f62d1f8e8fc851153b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 29 Dec 2015 05:01:53 +0000 Subject: Add missing override attribute --- libsqlitepp/sqlite-modifycommand.h | 2 +- libsqlitepp/sqlite-selectcommand.cpp | 4 ++-- libsqlitepp/sqlite-selectcommand.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'libsqlitepp') 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; }; } -- cgit v1.2.3