diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-06 06:03:24 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-06 06:03:24 +0800 |
commit | c966ff246fefad4d9522eb87f4cf80dd51a92465 (patch) | |
tree | bb818286c87b1bd5c8c522c317f561d39f3099c2 | |
parent | 305f54b23f9643538a7e3a06d855271be0949035 (diff) | |
download | dexon-solidity-c966ff246fefad4d9522eb87f4cf80dd51a92465.tar dexon-solidity-c966ff246fefad4d9522eb87f4cf80dd51a92465.tar.gz dexon-solidity-c966ff246fefad4d9522eb87f4cf80dd51a92465.tar.bz2 dexon-solidity-c966ff246fefad4d9522eb87f4cf80dd51a92465.tar.lz dexon-solidity-c966ff246fefad4d9522eb87f4cf80dd51a92465.tar.xz dexon-solidity-c966ff246fefad4d9522eb87f4cf80dd51a92465.tar.zst dexon-solidity-c966ff246fefad4d9522eb87f4cf80dd51a92465.zip |
More style changes in enums
-rw-r--r-- | AST.cpp | 2 | ||||
-rwxr-xr-x | AST.h | 10 | ||||
-rw-r--r-- | Types.cpp | 10 |
3 files changed, 11 insertions, 11 deletions
@@ -602,7 +602,7 @@ Literal::Literal(Location const& _location, Token::Value _token, if (Token::isEtherSubdenomination(_sub)) m_subDenomination = static_cast<Literal::SubDenomination>(_sub); else - m_subDenomination = Literal::SubDenomination::NONE; + m_subDenomination = Literal::SubDenomination::None; } void Literal::checkTypeRequirements() @@ -1119,11 +1119,11 @@ class Literal: public PrimaryExpression public: enum class SubDenomination { - NONE = Token::ILLEGAL, - WEI = Token::SubWei, - SZABO = Token::SubSzabo, - FINNEY = Token::SubFinney, - ETHER = Token::SubEther + None = Token::ILLEGAL, + Wei = Token::SubWei, + Szabo = Token::SubSzabo, + Finney = Token::SubFinney, + Ether = Token::SubEther }; Literal(Location const& _location, Token::Value _token, ASTPointer<ASTString> const& _value, @@ -343,16 +343,16 @@ u256 IntegerConstantType::literalValue(Literal const* _literal) const Literal::SubDenomination sub =_literal->getSubDenomination(); switch(sub) { - case Literal::SubDenomination::WEI: - case Literal::SubDenomination::NONE: + case Literal::SubDenomination::Wei: + case Literal::SubDenomination::None: break; - case Literal::SubDenomination::SZABO: + case Literal::SubDenomination::Szabo: value *= u256(1000000000000); break; - case Literal::SubDenomination::FINNEY: + case Literal::SubDenomination::Finney: value *= u256(1000000000000000); break; - case Literal::SubDenomination::ETHER: + case Literal::SubDenomination::Ether: value *= u256(1000000000000000000); break; } |