From fa9b2130f43547be7e4698b8d95a23155c5d3ee1 Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Fri, 26 Jan 2024 13:52:47 -0500 Subject: 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. --- src/widgets/tab_activity_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widgets/tab_activity_list.cpp') diff --git a/src/widgets/tab_activity_list.cpp b/src/widgets/tab_activity_list.cpp index dd40de7..bd396c5 100644 --- a/src/widgets/tab_activity_list.cpp +++ b/src/widgets/tab_activity_list.cpp @@ -85,7 +85,7 @@ void TabActivityList::set_search_text(const QString &text) { void TabActivityList::actionOpen_URL_triggered(bool checked) { bool ok; - QString url = QInputDialog::getText(this, tr("Open status from URL"), tr("Status URL:"), QLineEdit::Normal, "https://…", &ok); + QString url = QInputDialog::getText(this, tr("Open status from URL"), tr("Status URL:"), QLineEdit::Normal, QStringLiteral("https://…"), &ok); // TODO: Move all of this to another thread // TODO: Reuse the Instance object -- cgit v1.2.3-54-g00ecf