From 3fbd8fa033ff05c64d2961ac051768bc20471122 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 14 Nov 2024 16:05:06 +0200 Subject: [PATCH] utils: Use QList::removeLast() in DamageJournal::add() We don't use the return value so QList doesn't need to move it around. --- src/utils/damagejournal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/damagejournal.h b/src/utils/damagejournal.h index fbd0dace9b..30e4b00ebd 100644 --- a/src/utils/damagejournal.h +++ b/src/utils/damagejournal.h @@ -43,7 +43,7 @@ public: void add(const QRegion ®ion) { while (m_log.size() >= m_capacity) { - m_log.takeLast(); + m_log.removeLast(); } m_log.prepend(region); }