dml: Add override specifier

This commit is contained in:
Joshua Scott 2018-04-03 17:11:34 +01:00
parent 016e360b98
commit c08eb617bf
2 changed files with 8 additions and 10 deletions

View File

@ -32,12 +32,11 @@ namespace dml
m_value = value;
}
const char *get_type_name() const final;
void write_to(std::ostream &ostream) const final;
void read_from(std::istream &istream) final;
size_t get_size() const final;
const char *get_type_name() const override final;
void write_to(std::ostream &ostream) const override final;
void read_from(std::istream &istream) override final;
size_t get_size() const override final;
/**
* Creates an XML node from this field's data.
@ -124,7 +123,7 @@ namespace dml
* Returns a new Field with the same name, transferability,
* type, and value but with a different owner Record.
*/
Field<ValueT> *clone() const final
Field<ValueT> *clone() const override final
{
auto *clone = new Field<ValueT>(m_name);
clone->m_transferable = true;

View File

@ -84,10 +84,9 @@ namespace dml
FieldList::const_iterator fields_begin() const;
FieldList::const_iterator fields_end() const;
void write_to(std::ostream &ostream) const final;
void read_from(std::istream &istream) final;
size_t get_size() const final;
void write_to(std::ostream &ostream) const override final;
void read_from(std::istream &istream) override final;
size_t get_size() const override final;
/**
* Creates an XML node from this record's data.