utils: Use QList::removeLast() in DamageJournal::add()

We don't use the return value so QList doesn't need to move it around.
wilder/Plasma/6.3
Vlad Zahorodnii 1 year ago
parent c1e3dc0e08
commit 3fbd8fa033
  1. 2
      src/utils/damagejournal.h

@ -43,7 +43,7 @@ public:
void add(const QRegion &region)
{
while (m_log.size() >= m_capacity) {
m_log.takeLast();
m_log.removeLast();
}
m_log.prepend(region);
}

Loading…
Cancel
Save