aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-06 06:03:24 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-06 06:03:24 +0800
commitc966ff246fefad4d9522eb87f4cf80dd51a92465 (patch)
treebb818286c87b1bd5c8c522c317f561d39f3099c2
parent305f54b23f9643538a7e3a06d855271be0949035 (diff)
downloaddexon-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.cpp2
-rwxr-xr-xAST.h10
-rw-r--r--Types.cpp10
3 files changed, 11 insertions, 11 deletions
diff --git a/AST.cpp b/AST.cpp
index 455dc44a..50a67a8d 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -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()
diff --git a/AST.h b/AST.h
index 193e7310..bced99f9 100755
--- a/AST.h
+++ b/AST.h
@@ -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,
diff --git a/Types.cpp b/Types.cpp
index a8b3add4..648cf9cb 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -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;
}