CLinkModel: Make use of QLatin1Char overloads
Same behavior, better performance and plays nicely if implicit C string -> QString is disabled in the future.
This commit is contained in:
parent
33fced1b7b
commit
c6a2669176
|
@ -58,7 +58,7 @@ QVariant CLinkModel::data(const QModelIndex& rkIndex, int Role) const
|
|||
{
|
||||
QString StrID = QString::number(TargetID, 16).toUpper();
|
||||
while (StrID.length() < 8)
|
||||
StrID = "0" + StrID;
|
||||
StrID = QLatin1Char{'0'} + StrID;
|
||||
return tr("External: %1").arg(StrID);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue