make use of C++ = default constructor declarations as well as more non-static member initialization syntax.

This commit is contained in:
Christian Parpart
2018-12-19 11:26:42 +01:00
parent d10bae245e
commit 62fe57479e
27 changed files with 51 additions and 65 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ public:
using LabelID = size_t;
using SubID = size_t;
virtual ~AbstractAssembly() {}
virtual ~AbstractAssembly() = default;
/// Set a new source location valid starting from the next instruction.
virtual void setSourceLocation(langutil::SourceLocation const& _location) = 0;
+1 -1
View File
@@ -38,7 +38,7 @@ class EVMAssembly: public AbstractAssembly
{
public:
explicit EVMAssembly(bool _evm15 = false): m_evm15(_evm15) { }
virtual ~EVMAssembly() {}
virtual ~EVMAssembly() = default;
/// Set a new source location valid starting from the next instruction.
void setSourceLocation(langutil::SourceLocation const& _location) override;
+1 -1
View File
@@ -38,7 +38,7 @@ using namespace dev::solidity;
EVMDialect::EVMDialect(AsmFlavour _flavour, bool _objectAccess):
Dialect(_flavour), m_objectAccess(_objectAccess)
Dialect{_flavour}, m_objectAccess(_objectAccess)
{
// The EVM instructions will be moved to builtins at some point.
if (!m_objectAccess)