forked from qt-creator/qt-creator
Simplify the assert condition
Change-Id: I59d6fe1bcfeabc33b24efc68c6e691d4e549faf7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -439,9 +439,9 @@ void TestCodeParser::onFinished()
|
|||||||
|
|
||||||
void TestCodeParser::onPartialParsingFinished()
|
void TestCodeParser::onPartialParsingFinished()
|
||||||
{
|
{
|
||||||
QTC_ASSERT(m_fullUpdatePostponed != m_partialUpdatePostponed
|
// fail only when both are true
|
||||||
|| ((m_fullUpdatePostponed || m_partialUpdatePostponed) == false),
|
QTC_ASSERT(!m_fullUpdatePostponed || !m_partialUpdatePostponed,
|
||||||
m_partialUpdatePostponed = false;m_postponedFiles.clear(););
|
m_partialUpdatePostponed = false; m_postponedFiles.clear());
|
||||||
if (m_fullUpdatePostponed) {
|
if (m_fullUpdatePostponed) {
|
||||||
m_fullUpdatePostponed = false;
|
m_fullUpdatePostponed = false;
|
||||||
qCDebug(LOG) << "calling updateTestTree (onPartialParsingFinished)";
|
qCDebug(LOG) << "calling updateTestTree (onPartialParsingFinished)";
|
||||||
|
Reference in New Issue
Block a user