From 11b7743c29868c971e75ff69a710e72ea690632f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 14 Mar 2019 02:25:57 -0400 Subject: [PATCH] src: Amend missing override specifiers --- src/literal_number.h | 8 ++++---- src/literal_string.h | 8 ++++---- src/op.h | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/literal_number.h b/src/literal_number.h index ba4a51a..5809ca5 100644 --- a/src/literal_number.h +++ b/src/literal_number.h @@ -16,12 +16,12 @@ namespace Sirit { class LiteralNumber : public Operand { public: LiteralNumber(std::type_index type); - ~LiteralNumber(); + ~LiteralNumber() override; - virtual void Fetch(Stream& stream) const; - virtual u16 GetWordCount() const; + void Fetch(Stream& stream) const override; + u16 GetWordCount() const override; - virtual bool operator==(const Operand& other) const; + bool operator==(const Operand& other) const override; template static LiteralNumber* Create(T value) { diff --git a/src/literal_string.h b/src/literal_string.h index f922f5d..9db4369 100644 --- a/src/literal_string.h +++ b/src/literal_string.h @@ -15,12 +15,12 @@ namespace Sirit { class LiteralString : public Operand { public: LiteralString(const std::string& string); - ~LiteralString(); + ~LiteralString() override; - virtual void Fetch(Stream& stream) const; - virtual u16 GetWordCount() const; + void Fetch(Stream& stream) const override; + u16 GetWordCount() const override; - virtual bool operator==(const Operand& other) const; + bool operator==(const Operand& other) const override; private: const std::string string; diff --git a/src/op.h b/src/op.h index 246f82c..8d9f739 100644 --- a/src/op.h +++ b/src/op.h @@ -17,12 +17,12 @@ namespace Sirit { class Op : public Operand { public: explicit Op(spv::Op opcode, std::optional id = {}, Id result_type = nullptr); - ~Op(); + ~Op() override; - virtual void Fetch(Stream& stream) const; - virtual u16 GetWordCount() const; + void Fetch(Stream& stream) const override; + u16 GetWordCount() const override; - virtual bool operator==(const Operand& other) const; + bool operator==(const Operand& other) const override; void Write(Stream& stream) const;