mirror of https://github.com/libAthena/athena.git
Proper pure-virtual convention
This commit is contained in:
parent
dd8b60f779
commit
a1acdac588
|
@ -44,7 +44,7 @@ struct WStringAsString;
|
|||
template <Endian DNAE>
|
||||
struct DNA
|
||||
{
|
||||
virtual ~DNA() {}
|
||||
virtual ~DNA() = default;
|
||||
|
||||
/**
|
||||
* @brief Common virtual read function for all DNA types
|
||||
|
|
|
@ -1203,14 +1203,14 @@ struct WStringAsStringYaml;
|
|||
template <Endian DNAE>
|
||||
struct DNAYaml : DNA<DNAE>
|
||||
{
|
||||
virtual ~DNAYaml() {}
|
||||
virtual ~DNAYaml() = default;
|
||||
|
||||
using DNA<DNAE>::read;
|
||||
using DNA<DNAE>::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 <size_t sizeVar>
|
||||
using Buffer = struct athena::io::BufferYaml<sizeVar, DNAE>;
|
||||
|
|
Loading…
Reference in New Issue