summaryrefslogtreecommitdiff
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
commitf71898826b957548fe703bba1e2f3864dc56c0f8 (patch)
tree9a886af50e1f706a0514fbbab05084a7734ab5c7
parentNon-const insertId (diff)
downloadlibdbpp-mysql-f71898826b957548fe703bba1e2f3864dc56c0f8.tar.bz2
libdbpp-mysql-f71898826b957548fe703bba1e2f3864dc56c0f8.tar.xz
libdbpp-mysql-f71898826b957548fe703bba1e2f3864dc56c0f8.zip
Add missing override attribute
-rw-r--r--libmysqlpp/my-column.h8
-rw-r--r--libmysqlpp/my-command.h26
-rw-r--r--libmysqlpp/my-modifycommand.h2
-rw-r--r--libmysqlpp/my-selectcommand.h4
4 files changed, 20 insertions, 20 deletions
diff --git a/libmysqlpp/my-column.h b/libmysqlpp/my-column.h
index 657b094..088b768 100644
--- a/libmysqlpp/my-column.h
+++ b/libmysqlpp/my-column.h
@@ -10,7 +10,7 @@ namespace MySQL {
public:
ColumnBase(const char * name, unsigned int field);
- bool isNull() const;
+ bool isNull() const override;
protected:
my_bool is_null;
@@ -21,19 +21,19 @@ namespace MySQL {
public:
StringColumn(const char * name, unsigned int field, MYSQL_BIND * b, unsigned int len);
~StringColumn();
- void apply(DB::HandleField &) const;
+ void apply(DB::HandleField &) const override;
char * value;
long unsigned int length;
};
class NullColumn : public ColumnBase {
public:
NullColumn(const char * name, unsigned int field, MYSQL_BIND * b);
- void apply(DB::HandleField &) const;
+ void apply(DB::HandleField &) const override;
};
template <class T, enum_field_types MT> class Column : public ColumnBase {
public:
Column(const char * name, unsigned int field, MYSQL_BIND * b);
- void apply(DB::HandleField & h) const;
+ void apply(DB::HandleField & h) const override;
T value;
};
}
diff --git a/libmysqlpp/my-command.h b/libmysqlpp/my-command.h
index 2de1b85..71f7d51 100644
--- a/libmysqlpp/my-command.h
+++ b/libmysqlpp/my-command.h
@@ -12,24 +12,24 @@ namespace MySQL {
Command(const Connection *, const std::string & sql);
virtual ~Command() = 0;
- void bindParamI(unsigned int, int);
- void bindParamI(unsigned int, long int);
- void bindParamI(unsigned int, long long int);
- void bindParamI(unsigned int, unsigned int);
- void bindParamI(unsigned int, long unsigned int);
- void bindParamI(unsigned int, long long unsigned int);
+ void bindParamI(unsigned int, int) override;
+ void bindParamI(unsigned int, long int) override;
+ void bindParamI(unsigned int, long long int) override;
+ void bindParamI(unsigned int, unsigned int) override;
+ void bindParamI(unsigned int, long unsigned int) override;
+ void bindParamI(unsigned int, long long unsigned int) override;
- void bindParamB(unsigned int, bool);
+ void bindParamB(unsigned int, bool) override;
- void bindParamF(unsigned int, double);
- void bindParamF(unsigned int, float);
+ void bindParamF(unsigned int, double) override;
+ void bindParamF(unsigned int, float) override;
- void bindParamS(unsigned int, const Glib::ustring&);
+ void bindParamS(unsigned int, const Glib::ustring&) override;
- void bindParamT(unsigned int, const boost::posix_time::time_duration &);
- void bindParamT(unsigned int, const boost::posix_time::ptime &);
+ void bindParamT(unsigned int, const boost::posix_time::time_duration &) override;
+ void bindParamT(unsigned int, const boost::posix_time::ptime &) override;
- void bindNull(unsigned int);
+ void bindNull(unsigned int) override;
protected:
void bindParams();
void * realloc(void * buffer, size_t size);
diff --git a/libmysqlpp/my-modifycommand.h b/libmysqlpp/my-modifycommand.h
index cf570bb..0f635cd 100644
--- a/libmysqlpp/my-modifycommand.h
+++ b/libmysqlpp/my-modifycommand.h
@@ -11,7 +11,7 @@ namespace MySQL {
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/libmysqlpp/my-selectcommand.h b/libmysqlpp/my-selectcommand.h
index dc4937a..b9a0edc 100644
--- a/libmysqlpp/my-selectcommand.h
+++ b/libmysqlpp/my-selectcommand.h
@@ -11,8 +11,8 @@ namespace MySQL {
public:
SelectCommand(const Connection *, const std::string & sql);
- bool fetch();
- void execute();
+ bool fetch() override;
+ void execute() override;
private:
bool prepared;