mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
make use of C++ = default constructor declarations as well as more non-static member initialization syntax.
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
@@ -44,7 +44,6 @@ namespace test
|
||||
class GasMeterTestFramework: public SolidityExecutionFramework
|
||||
{
|
||||
public:
|
||||
GasMeterTestFramework() { }
|
||||
void compile(string const& _sourceCode)
|
||||
{
|
||||
m_compiler.reset(false);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -39,8 +39,6 @@ namespace test
|
||||
class DocumentationChecker
|
||||
{
|
||||
public:
|
||||
DocumentationChecker(): m_compilerStack() {}
|
||||
|
||||
void checkNatspec(
|
||||
std::string const& _code,
|
||||
std::string const& _contractName,
|
||||
|
||||
@@ -45,8 +45,6 @@ namespace test
|
||||
class OptimizerTestFramework: public SolidityExecutionFramework
|
||||
{
|
||||
public:
|
||||
OptimizerTestFramework() { }
|
||||
|
||||
bytes const& compileAndRunWithOptimizer(
|
||||
std::string const& _sourceCode,
|
||||
u256 const& _value = 0,
|
||||
|
||||
Reference in New Issue
Block a user