diff options
author | ConfuSomu | 2024-01-26 13:52:47 -0500 |
---|---|---|
committer | ConfuSomu | 2024-01-26 13:52:47 -0500 |
commit | fa9b2130f43547be7e4698b8d95a23155c5d3ee1 (patch) | |
tree | 4d97cee4f744ae7de55fc25e24786411deb4f706 /src/widgets/tab_actor_info.cpp | |
parent | d561873e43de73b5ed48367bed6b6fcdfdefc174 (diff) | |
download | ActorViewer-fa9b2130f43547be7e4698b8d95a23155c5d3ee1.tar ActorViewer-fa9b2130f43547be7e4698b8d95a23155c5d3ee1.tar.gz ActorViewer-fa9b2130f43547be7e4698b8d95a23155c5d3ee1.zip |
Use QStringLiteral in some places
This should provide a light performance improvement as the QString is
built at compile time, with the generated data being stored in the
read-only segment of the built object file.
Diffstat (limited to 'src/widgets/tab_actor_info.cpp')
-rw-r--r-- | src/widgets/tab_actor_info.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/tab_actor_info.cpp b/src/widgets/tab_actor_info.cpp index f991366..9d35b29 100644 --- a/src/widgets/tab_actor_info.cpp +++ b/src/widgets/tab_actor_info.cpp @@ -32,7 +32,7 @@ TabActorInfo::~TabActorInfo() { // TODO: do this in another thread, like for status_info void TabActorInfo::update_ui() { if (not actor) { - ui->displayNameText->setText(QString("<html><head/><body><p><span style=\"font-size:14pt; font-weight:600;\">%1</span></p></body></html>").arg(tr("Failed to display Actor"))); + ui->displayNameText->setText(QStringLiteral("<html><head/><body><p><span style=\"font-size:14pt; font-weight:600;\">%1</span></p></body></html>").arg(tr("Failed to display Actor"))); ui->avatarImage->setText(""); return; } |