use once parsed pro file for both exact and cumulative evaluation

This commit is contained in:
Oswald Buddenhagen
2010-06-18 21:15:14 +02:00
parent 704deac4e2
commit 82e10eae3b

View File

@@ -1024,10 +1024,15 @@ void Qt4ProFileNode::setupReader()
bool Qt4ProFileNode::evaluate()
{
bool parserError = false;
if (!m_readerExact->readProFile(m_projectFilePath))
parserError = true;
if (!m_readerCumulative->readProFile(m_projectFilePath))
if (ProFile *pro = m_readerExact->parsedProFile(m_projectFilePath)) {
if (!m_readerExact->accept(pro))
parserError = true;
if (!m_readerCumulative->accept(pro))
parserError = true;
pro->deref();
} else {
parserError = true;
}
return parserError;
}