don't evaluate the child-nodes when there are none, directly just return ()

--HG--
branch : dfighter-tools
hg/feature/streamed-package
dfighter1985 11 years ago
parent 4d760c7515
commit 012fae0ef6

@ -297,9 +297,16 @@ QString ExpressionNode::build() const
QStringList l = m_name.split( ' ' );
result = l[ 0 ];
result += "( ";
int c = m_links.count();
if( c == 1 )
{
result += "()";
return result;
}
result += "( ";
for( int i = 1; i < c; i++ )
{
ExpressionLink *link = m_links[ i ];

Loading…
Cancel
Save