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
@@ -36,7 +36,7 @@ class TestCase
public:
using TestCaseCreator = std::unique_ptr<TestCase>(*)(std::string const&);
virtual ~TestCase() {}
virtual ~TestCase() = default;
/// Runs the test case.
/// Outputs error messages to @arg _stream. Each line of output is prefixed with @arg _linePrefix.
-1
View File
@@ -44,7 +44,6 @@ namespace test
class GasMeterTestFramework: public SolidityExecutionFramework
{
public:
GasMeterTestFramework() { }
void compile(string const& _sourceCode)
{
m_compiler.reset(false);
-2
View File
@@ -38,8 +38,6 @@ namespace test
class JSONInterfaceChecker
{
public:
JSONInterfaceChecker(): m_compilerStack() {}
void checkInterface(std::string const& _code, std::string const& _contractName, std::string const& _expectedInterfaceString)
{
m_compilerStack.reset(false);
-2
View File
@@ -39,8 +39,6 @@ namespace test
class DocumentationChecker
{
public:
DocumentationChecker(): m_compilerStack() {}
void checkNatspec(
std::string const& _code,
std::string const& _contractName,
-2
View File
@@ -45,8 +45,6 @@ namespace test
class OptimizerTestFramework: public SolidityExecutionFramework
{
public:
OptimizerTestFramework() { }
bytes const& compileAndRunWithOptimizer(
std::string const& _sourceCode,
u256 const& _value = 0,