From f71345277650af4f0be05335d5ec7a2694a2aa22 Mon Sep 17 00:00:00 2001 From: RickyRister Date: Wed, 8 Jan 2025 22:41:03 -0800 Subject: [PATCH] cleanup --- cockatrice/src/game/cards/abstract_card_item.cpp | 2 +- cockatrice/src/game/cards/abstract_card_item.h | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/cockatrice/src/game/cards/abstract_card_item.cpp b/cockatrice/src/game/cards/abstract_card_item.cpp index 1708d53cc..8101c2d6e 100644 --- a/cockatrice/src/game/cards/abstract_card_item.cpp +++ b/cockatrice/src/game/cards/abstract_card_item.cpp @@ -24,7 +24,7 @@ AbstractCardItem::AbstractCardItem(QGraphicsItem *parent, setFlag(ItemIsSelectable); setCacheMode(DeviceCoordinateCache); - connect(&SettingsCache::instance(), &SettingsCache::displayCardNamesChanged, this, &AbstractCardItem::callUpdate); + connect(&SettingsCache::instance(), &SettingsCache::displayCardNamesChanged, this, [this] { update(); }); refreshCardInfo(); } diff --git a/cockatrice/src/game/cards/abstract_card_item.h b/cockatrice/src/game/cards/abstract_card_item.h index 809f90498..75bb794f1 100644 --- a/cockatrice/src/game/cards/abstract_card_item.h +++ b/cockatrice/src/game/cards/abstract_card_item.h @@ -28,10 +28,6 @@ private: qreal realZValue; private slots: void pixmapUpdated(); - void callUpdate() - { - update(); - } public slots: void refreshCardInfo();