mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-04 20:26:05 +00:00
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();
|
QString StrID = QString::number(TargetID, 16).toUpper();
|
||||||
while (StrID.length() < 8)
|
while (StrID.length() < 8)
|
||||||
StrID = "0" + StrID;
|
StrID = QLatin1Char{'0'} + StrID;
|
||||||
return tr("External: %1").arg(StrID);
|
return tr("External: %1").arg(StrID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user