aboutsummaryrefslogtreecommitdiffstats
path: root/src/activitypub/appost.cpp
diff options
context:
space:
mode:
authorConfuSomu2024-01-26 13:52:47 -0500
committerConfuSomu2024-01-26 13:52:47 -0500
commitfa9b2130f43547be7e4698b8d95a23155c5d3ee1 (patch)
tree4d97cee4f744ae7de55fc25e24786411deb4f706 /src/activitypub/appost.cpp
parentd561873e43de73b5ed48367bed6b6fcdfdefc174 (diff)
downloadActorViewer-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/activitypub/appost.cpp')
-rw-r--r--src/activitypub/appost.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/activitypub/appost.cpp b/src/activitypub/appost.cpp
index 87d6f08..c1f78d4 100644
--- a/src/activitypub/appost.cpp
+++ b/src/activitypub/appost.cpp
@@ -42,7 +42,7 @@ QString APPost::get_html_status_languages() {
}
QString APPost::get_html_render(HtmlRenderDetails render_info) {
- QString html(get_html_template("appost"));
+ QString html(get_html_template(QStringLiteral("appost")));
if (published.isValid()) {
// Using QLocale::toString() is forward compatible with Qt 6 as QDateTime::toString() will not return anymore a string in the system locale.