mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Mark a lot of functions static (where possible)
This commit is contained in:
@@ -50,8 +50,8 @@ public:
|
||||
private:
|
||||
void finalise(CompilerState const& _cs);
|
||||
|
||||
template <class T> void error() const { BOOST_THROW_EXCEPTION(T() ); }
|
||||
template <class T> void error(std::string const& reason) const {
|
||||
template <class T> static void error() { BOOST_THROW_EXCEPTION(T() ); }
|
||||
template <class T> static void error(std::string const& reason) {
|
||||
auto err = T();
|
||||
err << errinfo_comment(reason);
|
||||
BOOST_THROW_EXCEPTION(err);
|
||||
|
||||
Reference in New Issue
Block a user