mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #8148 from ethereum/awayWithNew
Remove remaining instances of new.
This commit is contained in:
commit
55748804a5
@ -47,6 +47,6 @@ FunctionFlow const& CFG::functionFlow(FunctionDefinition const& _function) const
|
||||
|
||||
CFGNode* CFG::NodeContainer::newNode()
|
||||
{
|
||||
m_nodes.emplace_back(new CFGNode());
|
||||
m_nodes.emplace_back(std::make_unique<CFGNode>());
|
||||
return m_nodes.back().get();
|
||||
}
|
||||
|
@ -210,7 +210,7 @@ pair<u256, unsigned> const* MemberList::memberStorageOffset(string const& _name)
|
||||
memberTypes.reserve(m_memberTypes.size());
|
||||
for (auto const& member: m_memberTypes)
|
||||
memberTypes.push_back(member.type);
|
||||
m_storageOffsets.reset(new StorageOffsets());
|
||||
m_storageOffsets = std::make_unique<StorageOffsets>();
|
||||
m_storageOffsets->computeOffsets(memberTypes);
|
||||
}
|
||||
for (size_t index = 0; index < m_memberTypes.size(); ++index)
|
||||
|
Loading…
Reference in New Issue
Block a user