summaryrefslogtreecommitdiff
path: root/libpqpp
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
commit710133b747c45fd2f62982f734ea5b6233e99333 (patch)
tree91d36ce3c84fa8ed7432fe2ffa5dcef43c31c96d /libpqpp
parentNon-const insertId (diff)
downloadlibdbpp-postgresql-710133b747c45fd2f62982f734ea5b6233e99333.tar.bz2
libdbpp-postgresql-710133b747c45fd2f62982f734ea5b6233e99333.tar.xz
libdbpp-postgresql-710133b747c45fd2f62982f734ea5b6233e99333.zip
Add missing override attribute
Diffstat (limited to 'libpqpp')
-rw-r--r--libpqpp/pq-column.h4
-rw-r--r--libpqpp/pq-command.h26
-rw-r--r--libpqpp/pq-modifycommand.h2
-rw-r--r--libpqpp/pq-selectcommand.h4
4 files changed, 18 insertions, 18 deletions
diff --git a/libpqpp/pq-column.h b/libpqpp/pq-column.h
index d80090a..a5b33ef 100644
--- a/libpqpp/pq-column.h
+++ b/libpqpp/pq-column.h
@@ -10,8 +10,8 @@ namespace PQ {
public:
Column(const SelectCommand *, unsigned int field);
- bool isNull() const;
- void apply(DB::HandleField &) const;
+ bool isNull() const override;
+ void apply(DB::HandleField &) const override;
protected:
const SelectCommand * sc;
diff --git a/libpqpp/pq-command.h b/libpqpp/pq-command.h
index 32faaa0..e0f1e61 100644
--- a/libpqpp/pq-command.h
+++ b/libpqpp/pq-command.h
@@ -12,24 +12,24 @@ namespace PQ {
Command(const Connection *, const std::string & sql, unsigned int no);
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:
static void prepareSql(std::string & psql, const std::string & sql);
const std::string stmntName;
diff --git a/libpqpp/pq-modifycommand.h b/libpqpp/pq-modifycommand.h
index d29cf5e..20e5035 100644
--- a/libpqpp/pq-modifycommand.h
+++ b/libpqpp/pq-modifycommand.h
@@ -11,7 +11,7 @@ namespace PQ {
ModifyCommand(const Connection *, const std::string & sql, unsigned int no);
virtual ~ModifyCommand();
- unsigned int execute(bool);
+ unsigned int execute(bool) override;
private:
void prepare() const;
diff --git a/libpqpp/pq-selectcommand.h b/libpqpp/pq-selectcommand.h
index c72c314..cc35957 100644
--- a/libpqpp/pq-selectcommand.h
+++ b/libpqpp/pq-selectcommand.h
@@ -14,8 +14,8 @@ namespace PQ {
SelectCommand(const Connection *, const std::string & sql, unsigned int no);
virtual ~SelectCommand();
- bool fetch();
- void execute();
+ bool fetch() override;
+ void execute() override;
private:
void fetchTuples();