mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
reduce branches in QIcuCodec::codecForUtf
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
eb3055e0fb
commit
cd1bb895f3
1 changed files with 1 additions and 3 deletions
|
@ -1088,9 +1088,7 @@ QTextCodec *QIcuCodec::codecForUtf(const QByteArray &text, QTextCodec *defaultCo
|
|||
if (Q_UNLIKELY(U_FAILURE(error))) {
|
||||
qWarning("QIcuCodec::codecForText: ucnv_detectUnicodeSignature() failed %s", u_errorName(error));
|
||||
return defaultCodec;
|
||||
}
|
||||
|
||||
if (name) {
|
||||
} else if (name) {
|
||||
return QTextCodec::codecForName(name);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue