From c6a2669176d880dcdb951027a905bdcb2fcbc0c7 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 10 Jul 2020 12:13:13 -0400 Subject: [PATCH] CLinkModel: Make use of QLatin1Char overloads Same behavior, better performance and plays nicely if implicit C string -> QString is disabled in the future. --- src/Editor/WorldEditor/CLinkModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Editor/WorldEditor/CLinkModel.cpp b/src/Editor/WorldEditor/CLinkModel.cpp index 88012f22..ce043d4a 100644 --- a/src/Editor/WorldEditor/CLinkModel.cpp +++ b/src/Editor/WorldEditor/CLinkModel.cpp @@ -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); } }