Add a missing "virtual", and remove a trivial "private" redundancy

This commit is contained in:
louiz’
2019-09-27 20:57:30 +02:00
parent d839792f60
commit 06abd6e69a
+1 -3
View File
@@ -15,7 +15,7 @@ class PostgresqlStatement: public Statement
body(std::move(body)), body(std::move(body)),
conn(conn) conn(conn)
{} {}
~PostgresqlStatement() virtual ~PostgresqlStatement()
{ {
PQclear(this->result); PQclear(this->result);
this->result = nullptr; this->result = nullptr;
@@ -89,8 +89,6 @@ class PostgresqlStatement: public Statement
return true; return true;
} }
private:
private: private:
bool execute(const bool second_attempt=false) bool execute(const bool second_attempt=false)
{ {