┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/tests/dolphinsearchboxtest.cpp
diff options
context:
space:
mode:
authorZhangzhi Hu <[email protected]>2024-10-30 00:18:57 +0800
committerMéven Car <[email protected]>2024-10-31 10:04:40 +0000
commit25f7aba43d0f4ca38167dd686ae0efd8c89cc5d4 (patch)
tree4dd38ee1dc96039f14f19eba7d5eb876b5092336 /src/tests/dolphinsearchboxtest.cpp
parentaf77a3f5a8240599c1c7e0d07a2a3a485ca1af02 (diff)
refactor: replace QString() with QStringLiteral() for better performance
Diffstat (limited to 'src/tests/dolphinsearchboxtest.cpp')
-rw-r--r--src/tests/dolphinsearchboxtest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/dolphinsearchboxtest.cpp b/src/tests/dolphinsearchboxtest.cpp
index f21a75121..bda60909d 100644
--- a/src/tests/dolphinsearchboxtest.cpp
+++ b/src/tests/dolphinsearchboxtest.cpp
@@ -52,7 +52,7 @@ void DolphinSearchBoxTest::testTextClearing()
m_searchBox->setText("xyz");
m_searchBox->setVisible(false, WithoutAnimation);
m_searchBox->setVisible(true, WithoutAnimation);
- QCOMPARE(m_searchBox->text(), QString("xyz"));
+ QCOMPARE(m_searchBox->text(), QStringLiteral("xyz"));
QTest::keyClick(m_searchBox, Qt::Key_Escape);
QVERIFY(m_searchBox->text().isEmpty());