replaceArgEscapes(): rework nested conditional to avoid repetition
Change-Id: I42306cb38d745bde33b93d3f66e86f19f58a868a Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
54abc61af1
commit
d0c7f718ca
|
|
@ -7800,10 +7800,11 @@ static QString replaceArgEscapes(QStringView s, const ArgEscapeData &d, qsizetyp
|
|||
++c;
|
||||
|
||||
int escape = c->digitValue();
|
||||
if (escape != -1) {
|
||||
if (c + 1 != uc_end && (c + 1)->digitValue() != -1) {
|
||||
escape = (10 * escape) + (c + 1)->digitValue();
|
||||
if (escape != -1 && c + 1 != uc_end) {
|
||||
int digit = c[1].digitValue();
|
||||
if (digit != -1) {
|
||||
++c;
|
||||
escape = 10 * escape + digit;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue