aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-10 16:52:19 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-10 16:52:19 +0800
commit82c5fb32458309866033e12b8930a450753bc0bd (patch)
tree1657a824ff350199cb7454944abc280e35d61f28 /AST.cpp
parent943407e0fee2999ddeadb12fce417885d3fa59b7 (diff)
downloaddexon-solidity-82c5fb32458309866033e12b8930a450753bc0bd.tar.gz
dexon-solidity-82c5fb32458309866033e12b8930a450753bc0bd.tar.zst
dexon-solidity-82c5fb32458309866033e12b8930a450753bc0bd.zip
Addressing issues in Enum style fix
Diffstat (limited to 'AST.cpp')
-rw-r--r--AST.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/AST.cpp b/AST.cpp
index d887aa49..587724f5 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -449,7 +449,7 @@ void Expression::requireLValue()
void UnaryOperation::checkTypeRequirements()
{
- // INC, DEC, ADD, SUB, NOT, BitNot, DELETE
+ // Inc, Dec, Add, Sub, Not, BitNot, Delete
m_subExpression->checkTypeRequirements();
if (m_operator == Token::Value::Inc || m_operator == Token::Value::Dec || m_operator == Token::Value::Delete)
m_subExpression->requireLValue();
@@ -553,7 +553,7 @@ void FunctionCall::checkTypeRequirements()
bool FunctionCall::isTypeConversion() const
{
- return m_expression->getType()->getCategory() == Type::Category::Type;
+ return m_expression->getType()->getCategory() == Type::Category::TypeType;
}
void NewExpression::checkTypeRequirements()