diff options
author | Paweł Bylica <chfast@gmail.com> | 2015-06-08 18:13:44 +0800 |
---|---|---|
committer | Paweł Bylica <chfast@gmail.com> | 2015-06-08 18:13:44 +0800 |
commit | 8061002b9cda8b5741bcbbb4248b1369bd10eb29 (patch) | |
tree | 72a5ae6e2d63b1653669d1d8a34f86b7d215bd73 | |
parent | cddceb2b4f77e828a5ef5aa218e36afeef7bb30b (diff) | |
download | dexon-solidity-8061002b9cda8b5741bcbbb4248b1369bd10eb29.tar dexon-solidity-8061002b9cda8b5741bcbbb4248b1369bd10eb29.tar.gz dexon-solidity-8061002b9cda8b5741bcbbb4248b1369bd10eb29.tar.bz2 dexon-solidity-8061002b9cda8b5741bcbbb4248b1369bd10eb29.tar.lz dexon-solidity-8061002b9cda8b5741bcbbb4248b1369bd10eb29.tar.xz dexon-solidity-8061002b9cda8b5741bcbbb4248b1369bd10eb29.tar.zst dexon-solidity-8061002b9cda8b5741bcbbb4248b1369bd10eb29.zip |
Add missing override specifiers.
-rw-r--r-- | AST.h | 2 | ||||
-rw-r--r-- | LValue.h | 2 | ||||
-rw-r--r-- | Types.h | 4 |
3 files changed, 4 insertions, 4 deletions
@@ -503,7 +503,7 @@ public: /// Returns the declared or inferred type. Can be an empty pointer if no type was explicitly /// declared and there is no assignment to the variable that fixes the type. - TypePointer getType(ContractDefinition const* = nullptr) const { return m_type; } + TypePointer getType(ContractDefinition const* = nullptr) const override { return m_type; } void setType(std::shared_ptr<Type const> const& _type) { m_type = _type; } virtual bool isLValue() const override; @@ -109,7 +109,7 @@ public: StorageItem(CompilerContext& _compilerContext, Declaration const& _declaration); /// Constructs the LValue and assumes that the storage reference is already on the stack. StorageItem(CompilerContext& _compilerContext, Type const& _type); - virtual unsigned sizeOnStack() const { return 2; } + virtual unsigned sizeOnStack() const override { return 2; } virtual void retrieveValue(SourceLocation const& _location, bool _remove = false) const override; virtual void storeValue( Type const& _sourceType, @@ -407,7 +407,7 @@ public: virtual TypePointer unaryOperatorResult(Token::Value _operator) const override; virtual bool operator==(const Type& _other) const override; virtual unsigned getCalldataEncodedSize(bool _padded) const override; - virtual bool isDynamicallySized() const { return m_hasDynamicLength; } + virtual bool isDynamicallySized() const override { return m_hasDynamicLength; } virtual u256 getStorageSize() const override; virtual unsigned getSizeOnStack() const override; virtual std::string toString() const override; @@ -820,7 +820,7 @@ public: return TypePointer(); } - virtual bool operator==(Type const& _other) const; + virtual bool operator==(Type const& _other) const override; virtual bool canBeStored() const override { return false; } virtual bool canLiveOutsideStorage() const override { return true; } virtual unsigned getSizeOnStack() const override { return 0; } |