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:
parent
89f2a731cf
commit
6b65be5554
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user