summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-10-08 16:46:08 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-10-08 16:46:08 +0100
commit19b4b2cbdf1b4c500e1d33c510ccfe4cc6bc8744 (patch)
tree3a785df9b064b14200ee00cfc747b8b60a8dac5a
parentMake pq_deleter a generic helper (diff)
downloadlibdbpp-postgresql-19b4b2cbdf1b4c500e1d33c510ccfe4cc6bc8744.tar.bz2
libdbpp-postgresql-19b4b2cbdf1b4c500e1d33c510ccfe4cc6bc8744.tar.xz
libdbpp-postgresql-19b4b2cbdf1b4c500e1d33c510ccfe4cc6bc8744.zip
Fix virtual/override attribute use
-rw-r--r--libpqpp/pq-cursorselectcommand.h2
-rw-r--r--libpqpp/pq-prepared.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libpqpp/pq-cursorselectcommand.h b/libpqpp/pq-cursorselectcommand.h
index 681659c..2b3418b 100644
--- a/libpqpp/pq-cursorselectcommand.h
+++ b/libpqpp/pq-cursorselectcommand.h
@@ -13,7 +13,7 @@ namespace PQ {
public:
CursorSelectCommand(
Connection *, const std::string & sql, const PQ::CommandOptionsCPtr &, const DB::CommandOptionsCPtr &);
- virtual ~CursorSelectCommand();
+ ~CursorSelectCommand() override;
bool fetch() override;
void execute() override;
diff --git a/libpqpp/pq-prepared.h b/libpqpp/pq-prepared.h
index db520fa..ddddf01 100644
--- a/libpqpp/pq-prepared.h
+++ b/libpqpp/pq-prepared.h
@@ -11,7 +11,7 @@ namespace PQ {
class PreparedStatement : public Command {
protected:
PreparedStatement(Connection *, const std::string &, const DB::CommandOptionsCPtr &);
- virtual ~PreparedStatement() = default;
+ ~PreparedStatement() override = default;
const char * prepare() const;
mutable const char * pstmt;