diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-09-20 15:41:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-20 15:41:44 +0800 |
commit | d6bc0a0631897f893c06dcc9382bf29f23db6b26 (patch) | |
tree | bd4fba85b391e7005d2c69e88b7a25b5ab37c700 /test | |
parent | 137b214be471dd690aeadaf0e02b9ad0915d9e84 (diff) | |
parent | f958463416e88a769d0904ca3da48dac8a9c1c5a (diff) | |
download | dexon-solidity-d6bc0a0631897f893c06dcc9382bf29f23db6b26.tar dexon-solidity-d6bc0a0631897f893c06dcc9382bf29f23db6b26.tar.gz dexon-solidity-d6bc0a0631897f893c06dcc9382bf29f23db6b26.tar.bz2 dexon-solidity-d6bc0a0631897f893c06dcc9382bf29f23db6b26.tar.lz dexon-solidity-d6bc0a0631897f893c06dcc9382bf29f23db6b26.tar.xz dexon-solidity-d6bc0a0631897f893c06dcc9382bf29f23db6b26.tar.zst dexon-solidity-d6bc0a0631897f893c06dcc9382bf29f23db6b26.zip |
Merge pull request #2929 from ethereum/cppcheck
Another set of improvements found by cppcheck
Diffstat (limited to 'test')
-rw-r--r-- | test/ExecutionFramework.h | 2 | ||||
-rw-r--r-- | test/RPCSession.h | 6 | ||||
-rw-r--r-- | test/libdevcore/Whiskers.cpp (renamed from test/libdevcore/MiniMoustache.cpp) | 0 | ||||
-rw-r--r-- | test/libsolidity/AnalysisFramework.h | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/test/ExecutionFramework.h b/test/ExecutionFramework.h index ba385dee..e8d8d111 100644 --- a/test/ExecutionFramework.h +++ b/test/ExecutionFramework.h @@ -262,7 +262,7 @@ protected: void sendMessage(bytes const& _data, bool _isCreation, u256 const& _value = 0); void sendEther(Address const& _to, u256 const& _value); size_t currentTimestamp(); - size_t blockTimestamp(u256 number); + size_t blockTimestamp(u256 _number); /// @returns the (potentially newly created) _ith address. Address account(size_t _i); diff --git a/test/RPCSession.h b/test/RPCSession.h index 558cb99f..eae6a09c 100644 --- a/test/RPCSession.h +++ b/test/RPCSession.h @@ -40,7 +40,7 @@ class IPCSocket : public boost::noncopyable { public: - IPCSocket(std::string const& _path); + explicit IPCSocket(std::string const& _path); std::string sendRequest(std::string const& _req); ~IPCSocket() { CloseHandle(m_socket); } @@ -55,7 +55,7 @@ private: class IPCSocket: public boost::noncopyable { public: - IPCSocket(std::string const& _path); + explicit IPCSocket(std::string const& _path); std::string sendRequest(std::string const& _req); ~IPCSocket() { close(m_socket); } @@ -107,7 +107,7 @@ public: Json::Value eth_getBlockByNumber(std::string const& _blockNumber, bool _fullObjects); std::string eth_call(TransactionData const& _td, std::string const& _blockNumber); TransactionReceipt eth_getTransactionReceipt(std::string const& _transactionHash); - std::string eth_sendTransaction(TransactionData const& _transactionData); + std::string eth_sendTransaction(TransactionData const& _td); std::string eth_sendTransaction(std::string const& _transaction); std::string eth_getBalance(std::string const& _address, std::string const& _blockNumber); std::string eth_getStorageRoot(std::string const& _address, std::string const& _blockNumber); diff --git a/test/libdevcore/MiniMoustache.cpp b/test/libdevcore/Whiskers.cpp index 84149173..84149173 100644 --- a/test/libdevcore/MiniMoustache.cpp +++ b/test/libdevcore/Whiskers.cpp diff --git a/test/libsolidity/AnalysisFramework.h b/test/libsolidity/AnalysisFramework.h index f73f06c2..172ae01b 100644 --- a/test/libsolidity/AnalysisFramework.h +++ b/test/libsolidity/AnalysisFramework.h @@ -59,8 +59,8 @@ protected: void printErrors(); - ContractDefinition const* retrieveContractByName(SourceUnit const& _source, std::string const& _name); - FunctionTypePointer retrieveFunctionBySignature( + static ContractDefinition const* retrieveContractByName(SourceUnit const& _source, std::string const& _name); + static FunctionTypePointer retrieveFunctionBySignature( ContractDefinition const& _contract, std::string const& _signature ); |