mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
New clang error enforces virtual destructors.
This commit is contained in:
@@ -140,6 +140,7 @@ public:
|
||||
m_flags{static_cast<ColumnFlags>(f)},
|
||||
m_gobj_param_name{gobj_name}, m_qof_param_name{qof_name}, m_getter{get},
|
||||
m_setter{set} {}
|
||||
virtual ~GncSqlColumnTableEntry() = default;
|
||||
|
||||
/**
|
||||
* Load a value into an object from the database row.
|
||||
@@ -254,7 +255,7 @@ private:
|
||||
};
|
||||
|
||||
template <GncSqlObjectType Type>
|
||||
class GncSqlColumnTableEntryImpl : public GncSqlColumnTableEntry
|
||||
class GncSqlColumnTableEntryImpl final : public GncSqlColumnTableEntry
|
||||
{
|
||||
public:
|
||||
GncSqlColumnTableEntryImpl (const char* name, const GncSqlObjectType type,
|
||||
@@ -265,6 +266,7 @@ public:
|
||||
QofSetterFunc set = nullptr) :
|
||||
GncSqlColumnTableEntry (name, type, s, f, gobj_name,qof_name, get, set)
|
||||
{}
|
||||
|
||||
void load(const GncSqlBackend* sql_be, GncSqlRow& row, QofIdTypeConst obj_name,
|
||||
void* pObject) const noexcept override;
|
||||
void add_to_table(ColVec& vec) const noexcept override;
|
||||
|
||||
@@ -54,6 +54,7 @@ public:
|
||||
const std::string& table, const EntryVec& vec) :
|
||||
m_table_name{table}, m_version{version}, m_type_name{type},
|
||||
m_col_table(vec) {}
|
||||
virtual ~GncSqlObjectBackend() = default;
|
||||
/**
|
||||
* Load all objects of m_type in the database into memory.
|
||||
* @param sql_be The GncSqlBackend containing the database connection.
|
||||
|
||||
Reference in New Issue
Block a user