diff --git a/include/athena/DNA.hpp b/include/athena/DNA.hpp index 3b8a033..fc1688e 100644 --- a/include/athena/DNA.hpp +++ b/include/athena/DNA.hpp @@ -44,7 +44,7 @@ struct WStringAsString; template struct DNA { - virtual ~DNA() {} + virtual ~DNA() = default; /** * @brief Common virtual read function for all DNA types diff --git a/include/athena/DNAYaml.hpp b/include/athena/DNAYaml.hpp index 0b295aa..18e0963 100644 --- a/include/athena/DNAYaml.hpp +++ b/include/athena/DNAYaml.hpp @@ -1203,14 +1203,14 @@ struct WStringAsStringYaml; template struct DNAYaml : DNA { - virtual ~DNAYaml() {} + virtual ~DNAYaml() = default; - using DNA::read; - using DNA::write; + virtual void read(IStreamReader& r)=0; + virtual void write(IStreamWriter& w) const=0; virtual void read(YAMLDocReader& in)=0; virtual void write(YAMLDocWriter& out) const=0; - static const char* DNAType() {return nullptr;} - virtual const char* DNATypeV() const {return nullptr;} + static const char* DNAType() { return nullptr; } + virtual const char* DNATypeV() const { return nullptr; } template using Buffer = struct athena::io::BufferYaml;