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:
parent
32e7994843
commit
696277bbf6
@ -55,6 +55,7 @@ struct CsvImportSettings
|
||||
m_date_format {0}, m_currency_format {0},
|
||||
m_skip_start_lines{0}, m_skip_end_lines{0}, m_skip_alt_lines (false),
|
||||
m_separators {","}, m_load_error {false} { }
|
||||
virtual ~CsvImportSettings() = default;
|
||||
|
||||
/** Save the gathered widget properties to a key File.
|
||||
*
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user