diff options
author | Paweł Bylica <chfast@gmail.com> | 2015-06-08 18:09:24 +0800 |
---|---|---|
committer | Paweł Bylica <chfast@gmail.com> | 2015-06-08 18:09:24 +0800 |
commit | cddceb2b4f77e828a5ef5aa218e36afeef7bb30b (patch) | |
tree | 4bdf20a113d622e3ed245cc1a08af2361c12769a /Types.cpp | |
parent | b51ef4a357b4b60fc01038b0e97280fb9ecca01e (diff) | |
download | dexon-solidity-cddceb2b4f77e828a5ef5aa218e36afeef7bb30b.tar.gz dexon-solidity-cddceb2b4f77e828a5ef5aa218e36afeef7bb30b.tar.zst dexon-solidity-cddceb2b4f77e828a5ef5aa218e36afeef7bb30b.zip |
Remove pessimising moves.
Diffstat (limited to 'Types.cpp')
-rw-r--r-- | Types.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1459,29 +1459,29 @@ MagicType::MagicType(MagicType::Kind _kind): switch (m_kind) { case Kind::Block: - m_members = move(MemberList({ + m_members = MemberList({ {"coinbase", make_shared<IntegerType>(0, IntegerType::Modifier::Address)}, {"timestamp", make_shared<IntegerType>(256)}, {"blockhash", make_shared<FunctionType>(strings{"uint"}, strings{"bytes32"}, FunctionType::Location::BlockHash)}, {"difficulty", make_shared<IntegerType>(256)}, {"number", make_shared<IntegerType>(256)}, {"gaslimit", make_shared<IntegerType>(256)} - })); + }); break; case Kind::Message: - m_members = move(MemberList({ + m_members = MemberList({ {"sender", make_shared<IntegerType>(0, IntegerType::Modifier::Address)}, {"gas", make_shared<IntegerType>(256)}, {"value", make_shared<IntegerType>(256)}, {"data", make_shared<ArrayType>(ReferenceType::Location::CallData)}, {"sig", make_shared<FixedBytesType>(4)} - })); + }); break; case Kind::Transaction: - m_members = move(MemberList({ + m_members = MemberList({ {"origin", make_shared<IntegerType>(0, IntegerType::Modifier::Address)}, {"gasprice", make_shared<IntegerType>(256)} - })); + }); break; default: BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Unknown kind of magic.")); |