Improve Q_ASSERT readability

Change-Id: I231ecafe1eb48d74f787083e86a85536a90ed69b
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
Jesus Fernandez 2018-08-03 15:23:32 +02:00 committed by Jesus Fernandez
parent 89f2a731cf
commit 6b65be5554

View File

@ -597,7 +597,13 @@ struct QBidiAlgorithm {
} else if (current == QChar::DirBN) { } else if (current == QChar::DirBN) {
current = last; current = last;
} else { } else {
Q_ASSERT(current != QChar::DirLRE && current != QChar::DirRLE && current != QChar::DirLRO && current != QChar::DirRLO && current != QChar::DirPDF); // there shouldn't be any explicit embedding marks here // there shouldn't be any explicit embedding marks here
Q_ASSERT(current != QChar::DirLRE);
Q_ASSERT(current != QChar::DirRLE);
Q_ASSERT(current != QChar::DirLRO);
Q_ASSERT(current != QChar::DirRLO);
Q_ASSERT(current != QChar::DirPDF);
last = current; last = current;
} }