diff --git a/include/ki/dml/Field.h b/include/ki/dml/Field.h index 6f158a8..b288909 100644 --- a/include/ki/dml/Field.h +++ b/include/ki/dml/Field.h @@ -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 *clone() const final + Field *clone() const override final { auto *clone = new Field(m_name); clone->m_transferable = true; diff --git a/include/ki/dml/Record.h b/include/ki/dml/Record.h index 4a55c7f..cc70dd7 100644 --- a/include/ki/dml/Record.h +++ b/include/ki/dml/Record.h @@ -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.