[libraries/ktextaddons] textautogeneratetext/widgets/autotests: const'ify variable
Laurent Montel <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 2b66991eed27001304223dd8a233ca30aa8a868d by Laurent Montel.
Committed on 29/07/2026 at 06:46.
Pushed by mlaurent into branch 'master'.
const'ify variable
M +1 -1 textautogeneratetext/widgets/autotests/textautogeneratehistorylistviewtest.cpp
https://invent.kde.org/libraries/ktextaddons/-/commit/2b66991eed27001304223dd8a233ca30aa8a868d
diff --git a/textautogeneratetext/widgets/autotests/textautogeneratehistorylistviewtest.cpp b/textautogeneratetext/widgets/autotests/textautogeneratehistorylistviewtest.cpp
index 9ba64d1bf..528adf3e3 100644
--- a/textautogeneratetext/widgets/autotests/textautogeneratehistorylistviewtest.cpp
+++ b/textautogeneratetext/widgets/autotests/textautogeneratehistorylistviewtest.cpp
@@ -18,7 +18,7 @@ TextAutoGenerateHistoryListViewTest::~TextAutoGenerateHistoryListViewTest() = de
void TextAutoGenerateHistoryListViewTest::shouldHaveDefaultValues()
{
- TextAutoGenerateText::TextAutoGenerateHistoryListView w(nullptr);
+ const TextAutoGenerateText::TextAutoGenerateHistoryListView w(nullptr);
QVERIFY(!w.dragEnabled());
QCOMPARE(w.indentation(), 0);
QVERIFY(!w.rootIsDecorated());