aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerContext.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-25 16:53:28 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-25 16:53:28 +0800
commit54121a0d787df1b730fa523b21040c312dda4bf6 (patch)
treee877533709f76cd894cd4610e3dda5567d963576 /CompilerContext.cpp
parentfb328b778cdd0c6022ce072689cb3d8b333232f8 (diff)
downloaddexon-solidity-54121a0d787df1b730fa523b21040c312dda4bf6.tar
dexon-solidity-54121a0d787df1b730fa523b21040c312dda4bf6.tar.gz
dexon-solidity-54121a0d787df1b730fa523b21040c312dda4bf6.tar.bz2
dexon-solidity-54121a0d787df1b730fa523b21040c312dda4bf6.tar.lz
dexon-solidity-54121a0d787df1b730fa523b21040c312dda4bf6.tar.xz
dexon-solidity-54121a0d787df1b730fa523b21040c312dda4bf6.tar.zst
dexon-solidity-54121a0d787df1b730fa523b21040c312dda4bf6.zip
Styling changes for SourceLocation and friends
Diffstat (limited to 'CompilerContext.cpp')
-rw-r--r--CompilerContext.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/CompilerContext.cpp b/CompilerContext.cpp
index 5fd91e43..8bb6cb00 100644
--- a/CompilerContext.cpp
+++ b/CompilerContext.cpp
@@ -175,28 +175,28 @@ void CompilerContext::resetVisitedNodes(ASTNode const* _node)
CompilerContext& CompilerContext::operator<<(eth::AssemblyItem _item)
{
- solAssert(m_visitedNodes.size() > 0, "No node on the visited stack");
+ solAssert(!m_visitedNodes.empty(), "No node on the visited stack");
m_asm.append(_item, m_visitedNodes.top()->getLocation());
return *this;
}
CompilerContext& CompilerContext::operator<<(eth::Instruction _instruction)
{
- solAssert(m_visitedNodes.size() > 0, "No node on the visited stack");
+ solAssert(!m_visitedNodes.empty(), "No node on the visited stack");
m_asm.append(_instruction, m_visitedNodes.top()->getLocation());
return *this;
}
CompilerContext& CompilerContext::operator<<(u256 const& _value)
{
- solAssert(m_visitedNodes.size() > 0, "No node on the visited stack");
+ solAssert(!m_visitedNodes.empty(), "No node on the visited stack");
m_asm.append(_value, m_visitedNodes.top()->getLocation());
return *this;
}
CompilerContext& CompilerContext::operator<<(bytes const& _data)
{
- solAssert(m_visitedNodes.size() > 0, "No node on the visited stack");
+ solAssert(!m_visitedNodes.empty(), "No node on the visited stack");
m_asm.append(_data, m_visitedNodes.top()->getLocation());
return *this;
}