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:
Lioncash 2020-07-10 12:13:13 -04:00
parent 33fced1b7b
commit c6a2669176
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}