From 2f0e57fcf7bbf77e29f5fcfacb7bab15b0eb5cae Mon Sep 17 00:00:00 2001 From: arkpar Date: Thu, 5 Mar 2015 16:36:13 +0100 Subject: [PATCH] style --- mix/CodeModel.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mix/CodeModel.cpp b/mix/CodeModel.cpp index c933d7e06..bb258334c 100644 --- a/mix/CodeModel.cpp +++ b/mix/CodeModel.cpp @@ -67,28 +67,28 @@ namespace return LocationPair(_node.getLocation().start, _node.getLocation().end); } - SolidityType nodeType(Type const* type) + SolidityType nodeType(Type const* _type) { - if (!type) + if (!_type) return SolidityType { SolidityType::Type::UnsignedInteger, 32 }; - switch (type->getCategory()) + switch (_type->getCategory()) { case Type::Category::Integer: { - IntegerType const* it = dynamic_cast(type); + IntegerType const* it = dynamic_cast(_type); unsigned size = it->getNumBits() / 8; SolidityType::Type typeCode = it->isAddress() ? SolidityType::Type::Address : it->isHash() ? SolidityType::Type::Hash : it->isSigned() ? SolidityType::Type::SignedInteger : SolidityType::Type::UnsignedInteger; return SolidityType { typeCode, size }; } case Type::Category::Bool: - return SolidityType { SolidityType::Type::Bool, type->getSizeOnStack() * 32 }; + return SolidityType { SolidityType::Type::Bool, _type->getSizeOnStack() * 32 }; case Type::Category::String: { - StaticStringType const* s = dynamic_cast(type); + StaticStringType const* s = dynamic_cast(_type); return SolidityType { SolidityType::Type::String, static_cast(s->getNumBytes()) }; } case Type::Category::Contract: - return SolidityType { SolidityType::Type::Address, type->getSizeOnStack() * 32 }; + return SolidityType { SolidityType::Type::Address, _type->getSizeOnStack() * 32 }; case Type::Category::Array: case Type::Category::Enum: case Type::Category::Function: